File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -121,19 +121,19 @@ impl BitcoindRpcClient {
121
121
. map ( |resp| resp. 0 )
122
122
}
123
123
124
- pub ( crate ) async fn get_mempool_entry ( & self , txid : & Txid ) -> std:: io:: Result < MempoolEntry > {
125
- let txid_hex = bitcoin:: consensus:: encode:: serialize_hex ( txid) ;
124
+ pub ( crate ) async fn get_mempool_entry ( & self , txid : Txid ) -> std:: io:: Result < MempoolEntry > {
125
+ let txid_hex = bitcoin:: consensus:: encode:: serialize_hex ( & txid) ;
126
126
let txid_json = serde_json:: json!( txid_hex) ;
127
127
self . rpc_client
128
128
. call_method :: < GetMempoolEntryResponse > ( "getmempoolentry" , & vec ! [ txid_json] )
129
129
. await
130
- . map ( |resp| MempoolEntry { txid : txid . clone ( ) , height : resp. height , time : resp. time } )
130
+ . map ( |resp| MempoolEntry { txid, height : resp. height , time : resp. time } )
131
131
}
132
132
133
133
pub ( crate ) async fn get_mempool_entries ( & self ) -> std:: io:: Result < Vec < MempoolEntry > > {
134
134
let mempool_txids = self . get_raw_mempool ( ) . await ?;
135
135
let mut mempool_entries = Vec :: with_capacity ( mempool_txids. len ( ) ) ;
136
- for txid in & mempool_txids {
136
+ for txid in mempool_txids {
137
137
let entry = self . get_mempool_entry ( txid) . await ?;
138
138
mempool_entries. push ( entry) ;
139
139
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pub(crate) const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/ap
51
51
// The default Esplora client timeout we're using.
52
52
pub ( crate ) const DEFAULT_ESPLORA_CLIENT_TIMEOUT_SECS : u64 = 10 ;
53
53
54
- const CHAIN_POLLING_INTERVAL_SECS : u64 = 1 ;
54
+ const CHAIN_POLLING_INTERVAL_SECS : u64 = 2 ;
55
55
56
56
pub ( crate ) enum WalletSyncStatus {
57
57
Completed ,
You can’t perform that action at this time.
0 commit comments