Files
bitcoin/test/functional/feature_index_prune.py
Pol Espinasa 9d42e868fe test: fix send_batch_request to pass callables when using --usecli
send_batch_request() was building raw dicts without a "jsonrpc" version, which made Core to treat them as version 1.0 requests.
This worked in normal mode, but failed with --usecli because TestNodeCLI.batch() expects callables, not dicts.

This commit fixes it by using get_request() which is defined in both AuthServiceProxy and TestNodeCLIAttr.
The assert is changed because by using get_reques() AuthServiceProxy treats it as "jsonrpc" version 2.0 requests, which don't return "error" keys.

Github-Pull: #34991
Rebased-From: 5603ae0ffa
2026-05-07 11:42:24 +02:00

9.8 KiB
Executable File