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;
30
30
use bitcoin:: secp256k1:: Secp256k1 ;
31
31
use bitcoin:: { BlockHash , Transaction , Txid } ;
32
32
33
+ use core:: cmp;
33
34
use core:: ops:: Deref ;
34
35
35
36
/// The state of a spendable output currently tracked by an [`OutputSweeper`].
@@ -448,7 +449,7 @@ where
448
449
let cur_height = state_lock. best_block . height ;
449
450
let delayed_until_height = delay_spend. map ( |delay| match delay {
450
451
SpendingDelay :: Relative { num_blocks } => cur_height + num_blocks,
451
- SpendingDelay :: Absolute { height } => height,
452
+ SpendingDelay :: Absolute { height } => cmp :: max ( height, cur_height ) ,
452
453
} ) ;
453
454
for descriptor in relevant_descriptors {
454
455
let output_info = TrackedSpendableOutput {
You can’t perform that action at this time.
0 commit comments