diff options
| author | James O'Beirne <[email protected]> | 2019-03-27 10:55:57 -0400 |
|---|---|---|
| committer | James O'Beirne <[email protected]> | 2019-05-03 14:38:38 -0400 |
| commit | a3a609079c76dd2bbc72127488bf466cc61d8940 (patch) | |
| tree | 6e1dd1993f60b0d3cdf5fedbc396f0fb57921d2d /src/validation.cpp | |
| parent | rename: CChainState.chainActive -> m_chain (diff) | |
| download | discoin-a3a609079c76dd2bbc72127488bf466cc61d8940.tar.xz discoin-a3a609079c76dd2bbc72127488bf466cc61d8940.zip | |
refactoring: introduce unused ChainActive()
in preparation for the following scripted-diff commit.
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 3fef0e293..ec9f9c610 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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. |