Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maturation loop #3480

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading