During the loading of the genesis block, the bench print lines in ConnectTip divide by zero due to early return in ConnectBlock.
Increment nBlocksTotal before returning in ConnectBlock
This is a backport of Core PR15283
Differential D8857
Fix UB with bench on genesis block PiRK on Jan 8 2021, 22:40. Authored by Tags None Subscribers None
Details
Increment nBlocksTotal before returning in ConnectBlock This is a backport of Core PR15283 ninja && ./src/bitcoind -debug=bench | grep "Connect total:"
Diff Detail
|