3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
5
#include < base58.h>
6
- #include < chainparamsbase.h>
7
6
#include < core_io.h>
8
- #include < interfaces/chain.h>
9
7
#include < key.h>
10
8
#include < key_io.h>
11
9
#include < node/context.h>
@@ -73,15 +71,16 @@ const std::vector<std::string> RPC_COMMANDS_NOT_SAFE_FOR_FUZZING{
73
71
#ifdef ENABLE_WALLET
74
72
" dumpwallet" , // avoid writing to disk
75
73
#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
79
78
#ifdef ENABLE_WALLET
80
79
" importwallet" , // avoid reading from disk
81
80
" loadwallet" , // avoid reading from disk
82
81
#endif
83
- " mockscheduler" , // avoid assertion failure (Assertion `delta_seconds.count() > 0 && delta_seconds < std::chrono::hours{1}' failed.)
84
82
" 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
85
84
" setban" , // avoid DNS lookups
86
85
" stop" , // avoid shutdown state
87
86
};
@@ -107,7 +106,6 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
107
106
" finalizepsbt" ,
108
107
" generate" ,
109
108
" generateblock" ,
110
- " generatetodescriptor" ,
111
109
" getaddednodeinfo" ,
112
110
" getbestblockhash" ,
113
111
" getblock" ,
@@ -145,11 +143,11 @@ const std::vector<std::string> RPC_COMMANDS_SAFE_FOR_FUZZING{
145
143
" joinpsbts" ,
146
144
" listbanned" ,
147
145
" logging" ,
146
+ " mockscheduler" ,
148
147
" ping" ,
149
148
" preciousblock" ,
150
149
" pruneblockchain" ,
151
150
" reconsiderblock" ,
152
- " savemempool" ,
153
151
" scantxoutset" ,
154
152
" sendrawtransaction" ,
155
153
" setmocktime" ,
0 commit comments