Skip to content

Commit

Permalink
Do not let user try recovery if one block left
Browse files Browse the repository at this point in the history
  • Loading branch information
pythcoiner committed Jun 27, 2024
1 parent 8e6fa8b commit cd3338a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/app/state/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ fn recovery_paths(wallet: &Wallet, coins: &[Coin], blockheight: i32) -> Vec<Reco
.iter()
.filter(|coin| {
coin.spend_info.is_none()
&& remaining_sequence(coin, blockheight as u32, sequence) <= 1
&& remaining_sequence(coin, blockheight as u32, sequence) < 1
})
.fold(
(0, Amount::from_sat(0)),
Expand Down

0 comments on commit cd3338a

Please sign in to comment.