File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ where
571
571
if cur_height >= confirmation_height + ANTI_REORG_DELAY - 1 {
572
572
log_debug ! ( self . logger,
573
573
"Pruning swept output as sufficiently confirmed via spend in transaction {:?}. Pruned descriptor: {:?}" ,
574
- o. status. latest_spending_tx( ) . as_ref ( ) . map( |t| t. txid( ) ) , o. descriptor
574
+ o. status. latest_spending_tx( ) . map( |t| t. txid( ) ) , o. descriptor
575
575
) ;
576
576
return false ;
577
577
}
@@ -681,7 +681,7 @@ where
681
681
let unconf_height = state_lock
682
682
. outputs
683
683
. iter ( )
684
- . find ( |o| o. status . latest_spending_tx ( ) . as_ref ( ) . map ( |tx| tx. txid ( ) ) == Some ( * txid) )
684
+ . find ( |o| o. status . latest_spending_tx ( ) . map ( |tx| tx. txid ( ) ) == Some ( * txid) )
685
685
. and_then ( |o| o. status . confirmation_height ( ) ) ;
686
686
687
687
// Unconfirm all >= this height.
@@ -722,7 +722,7 @@ where
722
722
. filter_map ( |o| {
723
723
if let Some ( confirmation_hash) = o. status . confirmation_hash ( ) {
724
724
if let Some ( confirmation_height) = o. status . confirmation_height ( ) {
725
- if let Some ( latest_spending_tx) = o. status . latest_spending_tx ( ) . as_ref ( ) {
725
+ if let Some ( latest_spending_tx) = o. status . latest_spending_tx ( ) {
726
726
return Some ( (
727
727
latest_spending_tx. txid ( ) ,
728
728
confirmation_height,
You can’t perform that action at this time.
0 commit comments