Commit 795f740
committed
fix: skip type check for address-index RPCs that accept polymorphic input
The address-index RPCs (getaddressbalance, getaddresstxids, getaddressdeltas,
getaddressutxos, getaddressmempool) declare their first parameter as ARR but
actually accept either a bare string (single address) or an object with an
addresses array. The stricter type checking from bitcoin#29277 now validates
parameter types before the handler runs, causing these RPCs to reject string
inputs with 'JSON value of type string is not of expected type array'.
Add skip_type_check to these RPCs since they intentionally handle polymorphic
input in getAddressesFromParams().1 parent 18f2e43 commit 795f740
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| |||
0 commit comments