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`].
@@ -447,7 +448,7 @@ where
447
448
let cur_height = state_lock. best_block . height ;
448
449
let delayed_until_height = delay_spend. map ( |delay| match delay {
449
450
SpendingDelay :: Relative { num_blocks } => cur_height + num_blocks,
450
- SpendingDelay :: Absolute { height } => height,
451
+ SpendingDelay :: Absolute { height } => cmp :: max ( height, cur_height ) ,
451
452
} ) ;
452
453
for descriptor in relevant_descriptors {
453
454
let output_info = TrackedSpendableOutput {
You can’t perform that action at this time.
0 commit comments