File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1397,6 +1397,12 @@ A few guidelines for introducing and reviewing new RPC interfaces:
1397
1397
to a multi-value, or due to other historical reasons. ** Always** have false map to 0 and
1398
1398
true to 1 in this case.
1399
1399
1400
+ - For new RPC methods, if implementing a ` verbosity ` argument, use integer verbosity rather than boolean.
1401
+ Disallow usage of boolean verbosity (see ` ParseVerbosity() ` in [ util.h] ( /src/rpc/util.h ) ).
1402
+
1403
+ - * Rationale* : Integer verbosity allows for multiple values. Undocumented boolean verbosity is deprecated
1404
+ and new RPC methods should prevent its use.
1405
+
1400
1406
- Don't forget to fill in the argument names correctly in the RPC command table.
1401
1407
1402
1408
- * Rationale* : If not, the call cannot be used with name-based arguments.
You can’t perform that action at this time.
0 commit comments