bugfix: Strict type checking for RPC boolean parameters

This commit is contained in:
MarcoFalke committed 2022-12-07 17:55:58 +01:00
1 parent 9052d869c9
commit fa2cc5d1d6
4 files changed
+14 -8

No files matched your search

+8
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)