Skip to content

Commit

Permalink
gui: 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 Jul 19, 2024
1 parent 8e6fa8b commit ce574ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion gui/src/app/view/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub fn recovery<'a>(
Column::new()
.spacing(20)
.push(text(format!(
"{} recovery paths will be available at the next block, select one:",
"{} recovery paths will be available, select one:",
recovery_paths.len()
)))
.push(Column::with_children(recovery_paths).spacing(20)),
Expand Down

0 comments on commit ce574ec

Please sign in to comment.