We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb5609 commit 6848561Copy full SHA for 6848561
src/miner.cpp
@@ -589,13 +589,7 @@ void BlockAssembler::addPriorityTxs()
589
590
void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce)
591
{
592
- // Update nExtraNonce
593
- static uint256 hashPrevBlock;
594
- if (hashPrevBlock != pblock->hashPrevBlock)
595
- {
596
- nExtraNonce = 0;
597
- hashPrevBlock = pblock->hashPrevBlock;
598
- }
+ assert(pblock->hashPrevBlock == pindexPrev->GetBlockHash());
599
++nExtraNonce;
600
unsigned int nHeight = pindexPrev->nHeight+1; // Height first in coinbase required for block.version=2
601
CMutableTransaction txCoinbase(pblock->vtx[0]);
0 commit comments