Open luisschwab opened 2 weeks ago
cc @notmandatory
It's actually making two identical requests, ~15 seconds apart:
This error is caused by the rust-jsonrpc
upstream dependency, which implements a 15 second timeout for requests (see here).
This is not the expected behavior: it should simply wait and block until the scan is done. A simple fix is not obvious to me, besides increasing the DEFAULT_TIMEOUT
on rust-jsonrpc/src/http/simple_http.rs
to an absurd amount, which would invalidate it's functionality for every other RPC that doesn't take as long to complete.
rust-bitcoincore-rpc:
v0.19.0
Bitcoin Core:v0.21.0
andv24.0.1
scan_tx_out_set_blocking()
is panicking as if another scan was already in progress.This snippet:
returns this error:
I run
$ bitcoin-cli scantxoutset abort
before to make sure there is no scan in progress. After the panic,bitcoind
continues the scan (confirmed via$ bitcoin-cli scantxoutset status
).