File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ use bitcoin::blockdata::locktime::absolute::LockTime;
3030use bitcoin:: secp256k1:: Secp256k1 ;
3131use bitcoin:: { BlockHash , Transaction , Txid } ;
3232
33+ use core:: cmp;
3334use core:: ops:: Deref ;
3435
3536/// The state of a spendable output currently tracked by an [`OutputSweeper`].
@@ -447,7 +448,7 @@ where
447448 let cur_height = state_lock. best_block . height ;
448449 let delayed_until_height = delay_spend. map ( |delay| match delay {
449450 SpendingDelay :: Relative { num_blocks } => cur_height + num_blocks,
450- SpendingDelay :: Absolute { height } => height,
451+ SpendingDelay :: Absolute { height } => cmp :: max ( height, cur_height ) ,
451452 } ) ;
452453 for descriptor in relevant_descriptors {
453454 let output_info = TrackedSpendableOutput {
You can’t perform that action at this time.
0 commit comments