Skip to content

Commit b3e78dc

Browse files
committed
refactor: Don't use global chainparams in chainstatemanager method
The chainstatemanager m_options.chainparams member variable gets its value from the global chainparams in init.cpp. This allows validation.cpp to only include the the kernel chainparams file.
1 parent 382b692 commit b3e78dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/validation.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include <arith_uint256.h>
1212
#include <chain.h>
13-
#include <chainparams.h>
1413
#include <checkqueue.h>
1514
#include <consensus/amount.h>
1615
#include <consensus/consensus.h>
@@ -5430,7 +5429,7 @@ SnapshotCompletionResult ChainstateManager::MaybeCompleteSnapshotValidation(
54305429
CCoinsViewDB& ibd_coins_db = m_ibd_chainstate->CoinsDB();
54315430
m_ibd_chainstate->ForceFlushStateToDisk();
54325431

5433-
auto maybe_au_data = ExpectedAssumeutxo(curr_height, ::Params());
5432+
auto maybe_au_data = ExpectedAssumeutxo(curr_height, m_options.chainparams);
54345433
if (!maybe_au_data) {
54355434
LogPrintf("[snapshot] assumeutxo data not found for height " /* Continued */
54365435
"(%d) - refusing to validate snapshot\n", curr_height);

0 commit comments

Comments
 (0)