diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-23 18:07:00 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-15 17:45:48 +0100 |
commit | fa3d62cf7b3501a056b34c5458c14d2fe6a55bd7 (patch) | |
tree | 36896fec7741ad366d51a3f857ef801124c7f731 /src/index/base.cpp | |
parent | c09b41dc665bcc7d6dcc464f1d279e8eca598c8d (diff) | |
download | bitcoin-fa3d62cf7b3501a056b34c5458c14d2fe6a55bd7.tar.xz |
Move FindForkInGlobalIndex from BlockManager to CChainState
The helper was moved in commit b026e318c39f59a06e29f1b25c7f577e01b25ccb,
which also mentioned that it could be moved to CChainState. So do that,
as the functionality is not block-storage related.
This also allows to drop one function argument.
Diffstat (limited to 'src/index/base.cpp')
-rw-r--r-- | src/index/base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp index 8525dcbfa0..419b6fa982 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -65,7 +65,7 @@ bool BaseIndex::Init() if (locator.IsNull()) { m_best_block_index = nullptr; } else { - m_best_block_index = m_chainstate->m_blockman.FindForkInGlobalIndex(active_chain, locator); + m_best_block_index = m_chainstate->FindForkInGlobalIndex(locator); } m_synced = m_best_block_index.load() == active_chain.Tip(); if (!m_synced) { |