@@ -70,7 +70,6 @@ const std::vector<std::string> RPC_COMMANDS_NOT_SAFE_FOR_FUZZING{
70
70
" addconnection" , // avoid DNS lookups
71
71
" addnode" , // avoid DNS lookups
72
72
" addpeeraddress" , // avoid DNS lookups
73
- " analyzepsbt" , // avoid signed integer overflow in CFeeRate::GetFee(unsigned long) (https://github.com/bitcoin/bitcoin/issues/20607)
74
73
" dumptxoutset" , // avoid writing to disk
75
74
" dumpwallet" , // avoid writing to disk
76
75
" echoipc" , // avoid assertion failure (Assertion `"EnsureAnyNodeContext(request.context).init" && check' failed.)
@@ -79,14 +78,14 @@ const std::vector<std::string> RPC_COMMANDS_NOT_SAFE_FOR_FUZZING{
79
78
" gettxoutproof" , // avoid prohibitively slow execution
80
79
" importwallet" , // avoid reading from disk
81
80
" loadwallet" , // avoid reading from disk
82
- " prioritisetransaction" , // avoid signed integer overflow in CTxMemPool::PrioritiseTransaction(uint256 const&, long const&) (https://github.com/bitcoin/bitcoin/issues/20626)
83
81
" savemempool" , // disabled as a precautionary measure: may take a file path argument in the future
84
82
" setban" , // avoid DNS lookups
85
83
" stop" , // avoid shutdown state
86
84
};
87
85
88
86
// RPC commands which are safe for fuzzing.
89
87
const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
88
+ " analyzepsbt" ,
90
89
" clearbanned" ,
91
90
" combinepsbt" ,
92
91
" combinerawtransaction" ,
@@ -112,9 +111,9 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
112
111
" getblockchaininfo" ,
113
112
" getblockcount" ,
114
113
" getblockfilter" ,
114
+ " getblockfrompeer" , // when no peers are connected, no p2p message is sent
115
115
" getblockhash" ,
116
116
" getblockheader" ,
117
- " getblockfrompeer" , // when no peers are connected, no p2p message is sent
118
117
" getblockstats" ,
119
118
" getblocktemplate" ,
120
119
" getchaintips" ,
@@ -128,7 +127,6 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
128
127
" getmempoolancestors" ,
129
128
" getmempooldescendants" ,
130
129
" getmempoolentry" ,
131
- " gettxspendingprevout" ,
132
130
" getmempoolinfo" ,
133
131
" getmininginfo" ,
134
132
" getnettotals" ,
@@ -141,6 +139,7 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
141
139
" getrpcinfo" ,
142
140
" gettxout" ,
143
141
" gettxoutsetinfo" ,
142
+ " gettxspendingprevout" ,
144
143
" help" ,
145
144
" invalidateblock" ,
146
145
" joinpsbts" ,
@@ -149,6 +148,7 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
149
148
" mockscheduler" ,
150
149
" ping" ,
151
150
" preciousblock" ,
151
+ " prioritisetransaction" ,
152
152
" pruneblockchain" ,
153
153
" reconsiderblock" ,
154
154
" scanblocks" ,
0 commit comments