@@ -52,7 +52,7 @@ use bip157::IndexedBlock;
5252use bip157:: ScriptBuf ;
5353#[ doc( inline) ]
5454pub use bip157:: {
55- BlockHash , ClientError , FeeRate , HeaderCheckpoint , Info , Node , RejectPayload , RejectReason ,
55+ BlockHash , ClientError , FeeRate , HashCheckpoint , Info , Node , RejectPayload , RejectReason ,
5656 Requester , TrustedPeer , Warning , Wtxid ,
5757} ;
5858use bip157:: { Event , SyncUpdate } ;
@@ -324,7 +324,7 @@ impl<W: Wallets> UpdateSubscriber<W> {
324324 single. apply_chain_event ( & changeset) ;
325325 }
326326 if let Some ( multiple) = self . multiple_updates_builder . as_mut ( ) {
327- for ( _id , builder) in multiple. iter_mut ( ) {
327+ for builder in multiple. values_mut ( ) {
328328 builder. apply_chain_event ( & changeset) ;
329329 }
330330 }
@@ -343,7 +343,7 @@ impl<W: Wallets> UpdateSubscriber<W> {
343343 single. apply_block_event ( & block) ;
344344 }
345345 if let Some ( multiple) = self . multiple_updates_builder . as_mut ( ) {
346- for ( _id , builder) in multiple. iter_mut ( ) {
346+ for builder in multiple. values_mut ( ) {
347347 builder. apply_block_event ( & block) ;
348348 }
349349 }
@@ -353,7 +353,7 @@ impl<W: Wallets> UpdateSubscriber<W> {
353353 . extend ( single. peek_script_to_keychain_lookahead ( ) ) ;
354354 }
355355 if let Some ( multiple) = self . multiple_updates_builder . as_mut ( ) {
356- for ( _id , builder) in multiple. iter ( ) {
356+ for builder in multiple. values ( ) {
357357 self . spk_cache
358358 . extend ( builder. peek_script_to_keychain_lookahead ( ) ) ;
359359 }
@@ -535,6 +535,6 @@ pub enum ScanType {
535535 /// The amount of scripts used by the wallet that is being recovered.
536536 used_script_index : u32 ,
537537 /// The height in the block chain to begin searching for transactions.
538- checkpoint : HeaderCheckpoint ,
538+ checkpoint : HashCheckpoint ,
539539 } ,
540540}
0 commit comments