Revert "miner: Remove old CreateNewBlock w/o chainstate param"

This reverts commit 2afcf24408.
This commit is contained in:
Carl Dong
2021-03-16 19:31:17 -04:00
parent ed49203daa
commit 0c1b2bc549
2 changed files with 6 additions and 0 deletions

View File

@@ -96,6 +96,11 @@ void BlockAssembler::resetBlock()
nFees = 0;
}
std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn)
{
return CreateNewBlock(::ChainstateActive(), scriptPubKeyIn);
}
std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(CChainState& chainstate, const CScript& scriptPubKeyIn)
{
int64_t nTimeStart = GetTimeMicros();