Skip to content

Commit 54549dd

Browse files
fuzz: RPC fuzzer post-merge follow-ups. Remove unused includes. Update list of fuzzed RPC commands.
1 parent e458631 commit 54549dd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/test/fuzz/rpc.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <base58.h>
6-
#include <chainparamsbase.h>
76
#include <core_io.h>
8-
#include <interfaces/chain.h>
97
#include <key.h>
108
#include <key_io.h>
119
#include <node/context.h>
@@ -73,15 +71,16 @@ const std::vector<std::string> RPC_COMMANDS_NOT_SAFE_FOR_FUZZING{
7371
#ifdef ENABLE_WALLET
7472
"dumpwallet", // avoid writing to disk
7573
#endif
76-
"echoipc", // avoid assertion failure (Assertion `"EnsureAnyNodeContext(request.context).init" && check' failed.)
77-
"generatetoaddress", // avoid timeout
78-
"gettxoutproof", // avoid slow execution
74+
"echoipc", // avoid assertion failure (Assertion `"EnsureAnyNodeContext(request.context).init" && check' failed.)
75+
"generatetoaddress", // avoid prohibitively slow execution (when `num_blocks` is large)
76+
"generatetodescriptor", // avoid prohibitively slow execution (when `nblocks` is large)
77+
"gettxoutproof", // avoid prohibitively slow execution
7978
#ifdef ENABLE_WALLET
8079
"importwallet", // avoid reading from disk
8180
"loadwallet", // avoid reading from disk
8281
#endif
83-
"mockscheduler", // avoid assertion failure (Assertion `delta_seconds.count() > 0 && delta_seconds < std::chrono::hours{1}' failed.)
8482
"prioritisetransaction", // avoid signed integer overflow in CTxMemPool::PrioritiseTransaction(uint256 const&, long const&) (https://github.com/bitcoin/bitcoin/issues/20626)
83+
"savemempool", // disabled as a precautionary measure: may take a file path argument in the future
8584
"setban", // avoid DNS lookups
8685
"stop", // avoid shutdown state
8786
};
@@ -107,7 +106,6 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
107106
"finalizepsbt",
108107
"generate",
109108
"generateblock",
110-
"generatetodescriptor",
111109
"getaddednodeinfo",
112110
"getbestblockhash",
113111
"getblock",
@@ -145,11 +143,11 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
145143
"joinpsbts",
146144
"listbanned",
147145
"logging",
146+
"mockscheduler",
148147
"ping",
149148
"preciousblock",
150149
"pruneblockchain",
151150
"reconsiderblock",
152-
"savemempool",
153151
"scantxoutset",
154152
"sendrawtransaction",
155153
"setmocktime",

0 commit comments

Comments
 (0)