mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#26213: rpc: Strict type checking for RPC boolean parameters
pull/26681/headfa0153e609
refactor: Replace isTrue with get_bool (MarcoFalke)fa2cc5d1d6
bugfix: Strict type checking for RPC boolean parameters (MarcoFalke) Pull request description: ACKs for top commit: ryanofsky: Code review ACKfa0153e609
furszy: Code ACKfa0153e6
Tree-SHA512: b221f823c69d90c94447fd491071ff3659cfd512872b495ebc3e711f50633351974102c9ef7e50fa4a393c4131d349adea8fd41cc9d66f1f31e1f5e7a5f78757
commit
3b5fb6e77a
@ -0,0 +1,8 @@
|
||||
Low-level changes
|
||||
=================
|
||||
|
||||
- Previously `setban`, `addpeeraddress`, `walletcreatefundedpsbt`, methods
|
||||
allowed non-boolean and non-null values to be passed as boolean parameters.
|
||||
Any string, number, array, or object value that was passed would be treated
|
||||
as false. After this change, passing any value except `true`, `false`, or
|
||||
`null` now triggers a JSON value is not of expected type error. (#26213)
|
Loading…
Reference in new issue