mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
refactoring: introduce unused ChainActive()
in preparation for the following scripted-diff commit.
This commit is contained in:
parent
1b6e6fcfd2
commit
a3a609079c
2 changed files with 5 additions and 0 deletions
|
|
@ -220,6 +220,8 @@ private:
|
|||
void EraseBlockData(CBlockIndex* index) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
||||
} g_chainstate;
|
||||
|
||||
CChain& ChainActive() { return g_chainstate.m_chain; }
|
||||
|
||||
/**
|
||||
* Mutex to guard access to validation specific variables, such as reading
|
||||
* or changing the chainstate.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue