Skip to content
Browse files Upgrade

- This is for pools only (users do not need this); This ensures each
miner has a distinct merkle root.
  • Loading branch information
biblepay committed Oct 24, 2019
1 parent 156dd83 commit 3bd6b9a8bf5c61f74ee47d4f04443057d08b7f24
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/miner.cpp
@@ -1012,9 +1012,9 @@ bool CreateBlockForStratum(std::string sAddress, std::string& sError, CBlock& bl
return false;

CBlock *pblock = &pblocktemplate->block;
unsigned int nExtraNonce = 7;
int iStart = rand() % 65536;
unsigned int nExtraNonce = GetAdjustedTime() + iStart; // This is the Extra Nonce (not the nonce); this helps put every miner on their own private hash in the pool (since they don't have a distinct receiving address)
CBlockIndex* pindexPrev = chainActive.Tip();
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
blockX = const_cast<CBlock&>(*pblock);

0 comments on commit 3bd6b9a

Please sign in to comment.
You can’t perform that action at this time.