Skip to content

Commit

Permalink
Staking: set fixed accumulator checkpoint on new blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
celbalrai authored and ckti committed Apr 10, 2022
1 parent 43b9194 commit b9c3780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, chainparams.GetConsensus());
pblock->nNonce = 0;
if (nHeight < chainparams.GetConsensus().ATPStartHeight)
pblock->nAccumulatorCheckpoint = pindexPrev ? pindexPrev->nAccumulatorCheckpoint : uint256();
pblocktemplate->nPrevBits = pindexPrev->nBits;
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(*pblock->vtx[0]);
if (fPos)
Expand Down

0 comments on commit b9c3780

Please sign in to comment.