The recent (expansion of) usage of CheckProofOfWork (pow.cpp +78) for block generation (#5275, rpcmining.cpp +181) needs an adjustment to its error output/conditions. As it stands now, every occurrence of a nonce that results in an insufficient hash is LogPrint-ed: as "CheckProofOfWork() : hash doesn't match nBits", a valuable insight when validating proof of work, but not so much when generating it.
Usage of CheckProofOfWork for block generation #5405
issue ghost opened this issue on December 2, 2014-
ghost commented at 3:00 PM on December 2, 2014: none
- gavinandresen added the label Tests on Dec 2, 2014
- gavinandresen added the label Priority Low on Dec 2, 2014
- sdaftuar cross-referenced this on Jan 26, 2015 from issue Regtest difficulty calculation error by sdaftuar
- unknown cross-referenced this on Jan 8, 2016 from issue POTENTIAL DEADLOCK FYI by ghost
- MarcoFalke added the label Mining on Sep 27, 2016
- MarcoFalke removed the label Tests on Sep 27, 2016
- MarcoFalke added the label Tests on Sep 27, 2016
-
MarcoFalke commented at 7:33 PM on September 27, 2016: member
@21E14 Is this still an issue?
- laanwj closed this on Sep 28, 2016
-
ghost commented at 10:53 PM on October 8, 2016: none
@MarcoFalke @laanwj ACK.
- bitcoin locked this on Sep 8, 2021
Contributors
Linked (view graph)
#4793 Pow: Refactor: Encapsulate miner-related pow in GenerateProof (was ScanHash) and use it for regtest mining#5275 Optimize -regtest setgenerate block generation#5712 Regtest difficulty calculation error#7314 POTENTIAL DEADLOCK FYI#7459 Consensus: Decouple pow.o from util.o#7962 CalculateNextWorkRequired Cleanup