mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: Remove chainparams arg from CChainState member functions
Passing this is confusing and redundant with the m_params member.
This commit is contained in:
@@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(findCommonAncestor)
|
||||
auto* orig_tip = active.Tip();
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
BlockValidationState state;
|
||||
m_node.chainman->ActiveChainstate().InvalidateBlock(state, Params(), active.Tip());
|
||||
m_node.chainman->ActiveChainstate().InvalidateBlock(state, active.Tip());
|
||||
}
|
||||
BOOST_CHECK_EQUAL(active.Height(), orig_tip->nHeight - 10);
|
||||
coinbaseKey.MakeNewKey(true);
|
||||
|
||||
Reference in New Issue
Block a user