Fix benchmark difficulty callsite
This commit is contained in:
parent
e016663524
commit
d9e20d1590
1 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,11 @@ static void DuplicateInputs(benchmark::Bench& bench)
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
CBlockIndex* pindexPrev = testing_setup->m_node.chainman->ActiveChain().Tip();
|
CBlockIndex* pindexPrev = testing_setup->m_node.chainman->ActiveChain().Tip();
|
||||||
assert(pindexPrev != nullptr);
|
assert(pindexPrev != nullptr);
|
||||||
block.nBits = GetNextWorkRequired(pindexPrev, &block, chainparams.GetConsensus());
|
block.nBits = GetNextWorkRequired(
|
||||||
|
pindexPrev,
|
||||||
|
&block,
|
||||||
|
chainparams.GetConsensus(),
|
||||||
|
ALGO_SHA256D);
|
||||||
block.nNonce = 0;
|
block.nNonce = 0;
|
||||||
auto nHeight = pindexPrev->nHeight + 1;
|
auto nHeight = pindexPrev->nHeight + 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue