diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-01-18 21:49:30 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-05-10 12:09:33 +1000 |
commit | 38860f93b680f152fc6fc3d9ae574a4c0659e775 (patch) | |
tree | acc29f37fd6d9f96aa10ed59bf588ac51734989b /src/test/util/setup_common.cpp | |
parent | 69675ea4e73dcf5e9dd0f94802bd3463e4262081 (diff) | |
download | bitcoin-38860f93b680f152fc6fc3d9ae574a4c0659e775.tar.xz |
validation: remove redundant CChainParams params from ChainstateManager methods
Diffstat (limited to 'src/test/util/setup_common.cpp')
-rw-r--r-- | src/test/util/setup_common.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index aa7b73e6ac..6891629f8e 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -300,10 +300,9 @@ CBlock TestChain100Setup::CreateAndProcessBlock( chainstate = &Assert(m_node.chainman)->ActiveChainstate(); } - const CChainParams& chainparams = Params(); const CBlock block = this->CreateBlock(txns, scriptPubKey, *chainstate); std::shared_ptr<const CBlock> shared_pblock = std::make_shared<const CBlock>(block); - Assert(m_node.chainman)->ProcessNewBlock(chainparams, shared_pblock, true, nullptr); + Assert(m_node.chainman)->ProcessNewBlock(shared_pblock, true, nullptr); return block; } |