File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33//! Error types for the Bitcoin RPC client.
44
5+ use core:: fmt;
6+ use core:: num:: TryFromIntError ;
7+ use std:: io;
8+
59use bitcoin:: { consensus:: encode:: FromHexError , hex:: HexToArrayError } ;
610#[ cfg( feature = "28_0" ) ]
711use corepc_types:: v17:: { GetBlockHeaderVerboseError , GetBlockVerboseOneError } ;
812#[ cfg( not( feature = "28_0" ) ) ]
913use corepc_types:: v30:: { GetBlockHeaderVerboseError , GetBlockVerboseOneError } ;
1014use corepc_types:: { bitcoin, v30:: GetBlockFilterError } ;
1115use jsonrpc:: serde_json;
12- use std:: { fmt, io, num:: TryFromIntError } ;
1316
1417/// Result type alias for the RPC client.
1518pub type Result < T > = std:: result:: Result < T , Error > ;
@@ -69,7 +72,7 @@ impl fmt::Display for Error {
6972 }
7073}
7174
72- impl std :: error:: Error for Error { }
75+ impl core :: error:: Error for Error { }
7376
7477// Conversions from other error types
7578impl From < jsonrpc:: Error > for Error {
Original file line number Diff line number Diff line change 44//!
55//! These tests require a running Bitcoin Core node in regtest mode. To setup, refer to [`corepc_node`].
66
7+ use core:: str:: FromStr ;
8+
79use bdk_bitcoind_client:: { Auth , Client , Error } ;
810use corepc_types:: bitcoin:: { Amount , BlockHash , Txid } ;
9- use std:: str:: FromStr ;
1011
1112mod testenv;
1213
You can’t perform that action at this time.
0 commit comments