diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-03 09:55:58 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-19 09:27:00 -0400 |
commit | faba65e696a88e5626e587f4e63fa15500cbe4d0 (patch) | |
tree | 467272d5e303b7ed8c0ce0db94df93bc99b27c7d /src/validation.cpp | |
parent | fabf3d64ff2bd14f762810316144bb9fd69c517c (diff) |
Add ChainstateManager::ActiveChainstate
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 8bb03fdb97..fcaa62c9b2 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -5251,10 +5251,10 @@ CChainState& ChainstateManager::InitializeChainstate(const uint256& snapshot_blo return *to_modify; } -CChain& ChainstateManager::ActiveChain() const +CChainState& ChainstateManager::ActiveChainstate() const { assert(m_active_chainstate); - return m_active_chainstate->m_chain; + return *m_active_chainstate; } bool ChainstateManager::IsSnapshotActive() const |