@@ -54,6 +54,8 @@ size_t& GetNumMsgTypes()
5454
5555void initialize_process_message ()
5656{
57+ Assert (GetNumMsgTypes () == getAllNetMessageTypes ().size ()); // If this fails, add or remove the message type below
58+
5759 static const auto testing_setup = MakeFuzzingContext<const TestingSetup>();
5860 g_setup = testing_setup.get ();
5961 for (int i = 0 ; i < 2 * COINBASE_MATURITY; i++) {
@@ -104,8 +106,12 @@ void fuzz_target(FuzzBufferType buffer, const std::string& LIMIT_TO_MESSAGE_TYPE
104106
105107FUZZ_TARGET_INIT (process_message, initialize_process_message) { fuzz_target (buffer, " " ); }
106108FUZZ_TARGET_MSG (addr);
109+ FUZZ_TARGET_MSG (addrv2);
107110FUZZ_TARGET_MSG (block);
108111FUZZ_TARGET_MSG (blocktxn);
112+ FUZZ_TARGET_MSG (cfcheckpt);
113+ FUZZ_TARGET_MSG (cfheaders);
114+ FUZZ_TARGET_MSG (cfilter);
109115FUZZ_TARGET_MSG (cmpctblock);
110116FUZZ_TARGET_MSG (feefilter);
111117FUZZ_TARGET_MSG (filteradd);
@@ -114,16 +120,22 @@ FUZZ_TARGET_MSG(filterload);
114120FUZZ_TARGET_MSG (getaddr);
115121FUZZ_TARGET_MSG (getblocks);
116122FUZZ_TARGET_MSG (getblocktxn);
123+ FUZZ_TARGET_MSG (getcfcheckpt);
124+ FUZZ_TARGET_MSG (getcfheaders);
125+ FUZZ_TARGET_MSG (getcfilters);
117126FUZZ_TARGET_MSG (getdata);
118127FUZZ_TARGET_MSG (getheaders);
119128FUZZ_TARGET_MSG (headers);
120129FUZZ_TARGET_MSG (inv);
121130FUZZ_TARGET_MSG (mempool);
131+ FUZZ_TARGET_MSG (merkleblock);
122132FUZZ_TARGET_MSG (notfound);
123133FUZZ_TARGET_MSG (ping);
124134FUZZ_TARGET_MSG (pong);
135+ FUZZ_TARGET_MSG (sendaddrv2);
125136FUZZ_TARGET_MSG (sendcmpct);
126137FUZZ_TARGET_MSG (sendheaders);
127138FUZZ_TARGET_MSG (tx);
128139FUZZ_TARGET_MSG (verack);
129140FUZZ_TARGET_MSG (version);
141+ FUZZ_TARGET_MSG (wtxidrelay);
0 commit comments