-
Notifications
You must be signed in to change notification settings - Fork 289
Closed as not planned
Closed as not planned
Copy link
Description
rust-bitcoincore-rpc: v0.19.0
Bitcoin Core: v0.21.0
and v24.0.1
scan_tx_out_set_blocking()
is panicking as if another scan was already in progress.
This snippet:
extern crate bitcoincore_rpc;
extern crate bitcoincore_rpc_json;
use bitcoincore_rpc::{Auth, Client, RpcApi};
use bitcoincore_rpc_json::ScanTxOutRequest;
fn main() {
let rpc = Client::new("127.0.0.1",
Auth::UserPass("satoshi".to_string(),
"satoshi".to_string())).unwrap();
let scan_txout_request = ScanTxOutRequest::Single("pkh(02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5)".to_string());
let utxos = rpc.scan_tx_out_set_blocking(&[scan_txout_request]).unwrap();
println!("{:?}", utxos);
}
returns this error:
called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -8, message: "Scan already in progress, use action \"abort\" or \"status\"", data: None }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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
).
luigiminardim
Metadata
Metadata
Assignees
Labels
No labels