Skip to content

Commit c426b80

Browse files
committed
fuzz: add harness for the compact blocks protocol
This harness does one of the following operations in a loop: - send a cmpctblock message to the test node - send a blocktxn message to the test node - send a headers message to the test node - send a sendcmpct message to the test node - send a tx message to the test node - mine a block - set mock time The initialize function creates a TestingSetup and mines 200 blocks. Each fuzz iteration will then create a TestingSetup and copy the cached data directory via -fuzzcopydatadir.
1 parent 2b24349 commit c426b80

File tree

2 files changed

+401
-0
lines changed

2 files changed

+401
-0
lines changed

src/test/fuzz/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ add_executable(fuzz
2525
chain.cpp
2626
checkqueue.cpp
2727
cluster_linearize.cpp
28+
cmpctblock.cpp
2829
coins_view.cpp
2930
coinscache_sim.cpp
3031
connman.cpp

0 commit comments

Comments
 (0)