mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-16 08:16:38 +02:00
Merge bitcoin/bitcoin#33300: fuzz: compact block harness
c8d688f41cfuzz: send blocktxn messages in cmpctblock harness (Eugene Siegel)d0333bfe99fuzz: send compact blocks in cmpctblock harness (Eugene Siegel)3c58efe2acfuzz: mine blocks and send headers for them in cmpctblock harness (Eugene Siegel)651622432dfuzz: create and send transactions in cmpctblock harness (Eugene Siegel)8c9a3fd0e8net, fuzz: move CMPCTBLOCK_VERSION to header, use in cmpctblock harness (Eugene Siegel)6cd480f62ffuzz: initial compact block fuzz harness (Eugene Siegel) Pull request description: Adds a fuzz harness for testing compact blocks, similar to `process_message(s)`. It can make (in)valid blocks, reconstruct blocks with in-mempool txns, mark peers as HB, and has high stability in AFL++ (~98-99%). Coverage is [here](https://crypt-iq.github.io/fuzz_coverage_reports/cmpctblock-aflpp-inputs-09182025/) (look in `src/blockencodings.cpp`, relevant compact block bits in `src/net_processing.cpp`). ACKs for top commit: instagibbs: ACKc8d688f41cmarcofleon: ACKc8d688f41cTree-SHA512: d904066921211b32eb75c9602908929f46ecd25482c518db36ed9f30e012b350b38a2df382f0faa21decd43bc2cabcc859193207da34be76010a32df1d9ac5c8
This commit is contained in:
@@ -195,8 +195,6 @@ static constexpr double MAX_ADDR_RATE_PER_SECOND{0.1};
|
||||
* based increments won't go above this, but the MAX_ADDR_TO_SEND increment following GETADDR
|
||||
* is exempt from this limit). */
|
||||
static constexpr size_t MAX_ADDR_PROCESSING_TOKEN_BUCKET{MAX_ADDR_TO_SEND};
|
||||
/** The compactblocks version we support. See BIP 152. */
|
||||
static constexpr uint64_t CMPCTBLOCKS_VERSION{2};
|
||||
/** For private broadcast, send a transaction to this many peers. */
|
||||
static constexpr size_t NUM_PRIVATE_BROADCAST_PER_TX{3};
|
||||
/** Private broadcast connections must complete within this time. Disconnect the peer if it takes longer. */
|
||||
|
||||
Reference in New Issue
Block a user