diff options
author | Carl Dong <contact@carldong.me> | 2020-10-06 14:20:25 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-08 15:54:31 -0500 |
commit | 2c3ba006930a5bbbf5a33bd530f3c1b2c4103c74 (patch) | |
tree | 5bd37554891daf021b07b7cbda15e49d30295e13 /src/test/util | |
parent | 2afcf24408b4453e4418ebfb326b141f6ea8647c (diff) | |
download | bitcoin-2c3ba006930a5bbbf5a33bd530f3c1b2c4103c74.tar.xz |
miner: Pass in blockman to ::RegenerateCommitments
REQUIRES ATTENTION
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/setup_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 50c80b7dc6..f2174cd084 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -251,7 +251,7 @@ CBlock TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransa for (const CMutableTransaction& tx : txns) { block.vtx.push_back(MakeTransactionRef(tx)); } - RegenerateCommitments(block); + RegenerateCommitments(block, WITH_LOCK(::cs_main, return std::ref(g_chainman.m_blockman))); while (!CheckProofOfWork(block.GetHash(), block.nBits, chainparams.GetConsensus())) ++block.nNonce; |