Revert "scripted-diff: Invoke CreateNewBlock with chainstate"

This reverts commit 46b7f29340.
This commit is contained in:
Carl Dong
2021-03-16 19:32:10 -04:00
parent 0c1b2bc549
commit eede0647b0
6 changed files with 27 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ std::shared_ptr<CBlock> PrepareBlock(const NodeContext& node, const CScript& coi
{
auto block = std::make_shared<CBlock>(
BlockAssembler{*Assert(node.mempool), Params()}
.CreateNewBlock(::ChainstateActive(), coinbase_scriptPubKey)
.CreateNewBlock(coinbase_scriptPubKey)
->block);
LOCK(cs_main);