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`].
@@ -420,7 +421,7 @@ where
420
421
let cur_height = state_lock. best_block . height ;
421
422
let delayed_until_height = delay_spend. map ( |delay| match delay {
422
423
SpendingDelay :: Relative { num_blocks } => cur_height + num_blocks,
423
- SpendingDelay :: Absolute { height } => height,
424
+ SpendingDelay :: Absolute { height } => cmp :: max ( height, cur_height ) ,
424
425
} ) ;
425
426
for descriptor in relevant_descriptors {
426
427
let output_info = TrackedSpendableOutput {
You can’t perform that action at this time.
0 commit comments