Skip to content

Commit

Permalink
Fix maturation loop (#3480)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Apr 8, 2024
1 parent 744a3d6 commit c749c47
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,19 +565,19 @@ impl Wallet {

if let Some(transaction) = transaction {
if u32::try_from(transaction.info.confirmations).unwrap()
< Runestone::COMMIT_INTERVAL.into()
>= Runestone::COMMIT_INTERVAL.into()
{
continue;
}
}

let tx_out = self
.bitcoin_client()
.get_tx_out(&commit.txid(), 0, Some(true))?;
let tx_out = self
.bitcoin_client()
.get_tx_out(&commit.txid(), 0, Some(true))?;

if let Some(tx_out) = tx_out {
if tx_out.confirmations >= Runestone::COMMIT_INTERVAL.into() {
break;
if let Some(tx_out) = tx_out {
if tx_out.confirmations >= Runestone::COMMIT_INTERVAL.into() {
break;
}
} else {
bail!("rune commitment spent, can't send reveal tx");
}
}
}

Expand Down

0 comments on commit c749c47

Please sign in to comment.