mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-02 11:55:42 +02:00
284bd17309add check that chainwork doesn't exceed minimum work (marcofleon)9aa5d1c3fcadd clarification in comment (marcofleon) Pull request description: A followup to https://github.com/bitcoin/bitcoin/pull/30661 The added assertion just makes sure that the fuzz test is working as intended. If we're sure that the total work of the test chain is never more than minimum chain work, then we can be sure that the later assertion failure would actually mean that a bug in the headers presync logic was found. This PR also addresses: https://github.com/bitcoin/bitcoin/pull/30661#discussion_r1746614616 https://github.com/bitcoin/bitcoin/pull/30661#discussion_r1764943665 https://github.com/bitcoin/bitcoin/pull/30661#discussion_r1764961991 ACKs for top commit: instagibbs: reACK284bd17309maflcko: review ACK284bd17309achow101: ACK284bd17309Tree-SHA512: 76a9dffea4b6e13499c636d6ad26af06135319d25117c0eb40cf8dfcfdca6a4549c9b4d2ba835192ca355e0f8d476227aeabf8bdb68770def72a9fb521533fe5