aboutsummaryrefslogtreecommitdiff
path: root/src/test/blockfilter_index_tests.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-03-17 16:32:24 -0400
committerCarl Dong <contact@carldong.me>2021-03-24 15:40:56 -0400
commit7b8e976cd5ac78a22f1be2b2fed8562c693af5d9 (patch)
tree7cc8c7b03ef9b139d8dc5bc258cd848fc9dfc5a1 /src/test/blockfilter_index_tests.cpp
parente62067e7bcad5a559899afff2e4a8e8b7e9f4301 (diff)
downloadbitcoin-7b8e976cd5ac78a22f1be2b2fed8562c693af5d9.tar.xz
miner: Add chainstate member to BlockAssembler
Diffstat (limited to 'src/test/blockfilter_index_tests.cpp')
-rw-r--r--src/test/blockfilter_index_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp
index 633a95ce96..9903ba75cb 100644
--- a/src/test/blockfilter_index_tests.cpp
+++ b/src/test/blockfilter_index_tests.cpp
@@ -62,7 +62,7 @@ CBlock BuildChainTestingSetup::CreateBlock(const CBlockIndex* prev,
const CScript& scriptPubKey)
{
const CChainParams& chainparams = Params();
- std::unique_ptr<CBlockTemplate> pblocktemplate = BlockAssembler(*m_node.mempool, chainparams).CreateNewBlock(scriptPubKey);
+ std::unique_ptr<CBlockTemplate> pblocktemplate = BlockAssembler(::ChainstateActive(), *m_node.mempool, chainparams).CreateNewBlock(scriptPubKey);
CBlock& block = pblocktemplate->block;
block.hashPrevBlock = prev->GetBlockHash();
block.nTime = prev->nTime + 1;