diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-03-08 11:17:02 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-03-15 16:43:33 +0100 |
commit | b3e78dc91d01e364b77aacd9fb9a2f88688ab8a6 (patch) | |
tree | 8107909b5b26279a7e3973fd15ae6e2e14df8402 /src | |
parent | 382b692a503355df7347efd9c128aff465b5583e (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 6dff36649c..30ee85cf73 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -10,7 +10,6 @@ #include <arith_uint256.h> #include <chain.h> -#include <chainparams.h> #include <checkqueue.h> #include <consensus/amount.h> #include <consensus/consensus.h> @@ -5430,7 +5429,7 @@ SnapshotCompletionResult ChainstateManager::MaybeCompleteSnapshotValidation( CCoinsViewDB& ibd_coins_db = m_ibd_chainstate->CoinsDB(); m_ibd_chainstate->ForceFlushStateToDisk(); - auto maybe_au_data = ExpectedAssumeutxo(curr_height, ::Params()); + auto maybe_au_data = ExpectedAssumeutxo(curr_height, m_options.chainparams); if (!maybe_au_data) { LogPrintf("[snapshot] assumeutxo data not found for height " /* Continued */ "(%d) - refusing to validate snapshot\n", curr_height); |