diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-04-15 06:53:19 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-05-10 12:09:33 +1000 |
commit | bb5c24b120a3ac7df367a1c5d9b075ca564efb5f (patch) | |
tree | fb615ac890a78c4536a985db148c0d70d4ad2ef7 /src/node | |
parent | eca22c726ac48b4216bb68cc0f0bbd655c43ac12 (diff) | |
download | bitcoin-bb5c24b120a3ac7df367a1c5d9b075ca564efb5f.tar.xz |
validation: move g_versionbitscache into ChainstateManager
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/miner.cpp b/src/node/miner.cpp index e76967edd6..770ccdbe1a 100644 --- a/src/node/miner.cpp +++ b/src/node/miner.cpp @@ -126,7 +126,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc assert(pindexPrev != nullptr); nHeight = pindexPrev->nHeight + 1; - pblock->nVersion = g_versionbitscache.ComputeBlockVersion(pindexPrev, chainparams.GetConsensus()); + pblock->nVersion = m_chainstate.m_chainman.m_versionbitscache.ComputeBlockVersion(pindexPrev, chainparams.GetConsensus()); // -regtest only: allow overriding block.nVersion with // -blockversion=N to test forking scenarios if (chainparams.MineBlocksOnDemand()) { |