bugfix: Strict type checking for RPC boolean parameters

This commit is contained in:
MarcoFalke
2022-12-05 15:15:36 +01:00
parent 9052d869c9
commit fa2cc5d1d6
4 changed files with 14 additions and 8 deletions

View File

@@ -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)