Skip to content

Commit

Permalink
update exclusion list after building tx
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Nov 23, 2024
1 parent e384ad3 commit 7832f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ckb/funding/funding_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ impl FundingTxBuilder {
let mut funding_tx = self.funding_tx;
let tx_builder = tx.as_advanced_builder();
debug!("final tx_builder: {:?}", tx_builder);
let old_tx_hash_opt = funding_tx.tx.as_ref().map(|tx| tx.hash());
funding_tx.update_for_self(tx)?;
if let Some(tx_hash) = old_tx_hash_opt {
funding_exclusion.remove(&tx_hash);
}
funding_exclusion.insert(funding_tx.clone());
Ok(funding_tx)
}
}
Expand Down

0 comments on commit 7832f7d

Please sign in to comment.