X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fonchaintx.rs;h=8d5ed6cbc3c0771789020ad2fd73930b8f69c0cc;hb=5381c23d729f3f7dfd08faa3a336805fb8bbd30e;hp=cad5cc1bb2ea94ee9d386db96ed5a8775b5c64ef;hpb=e73036c6845fd3cc16479a1b497db82a5ebb3897;p=rust-lightning diff --git a/lightning/src/ln/onchaintx.rs b/lightning/src/ln/onchaintx.rs index cad5cc1b..8d5ed6cb 100644 --- a/lightning/src/ln/onchaintx.rs +++ b/lightning/src/ln/onchaintx.rs @@ -657,7 +657,7 @@ impl OnchainTxHandler { None } - pub(super) fn block_connected(&mut self, txn_matched: &[&Transaction], claimable_outpoints: Vec, height: u32, broadcaster: B, fee_estimator: F, logger: L) + pub(super) fn block_connected(&mut self, txn_matched: &[(usize, &Transaction)], claimable_outpoints: Vec, height: u32, broadcaster: B, fee_estimator: F, logger: L) where B::Target: BroadcasterInterface, F::Target: FeeEstimator, L::Target: Logger, @@ -706,7 +706,7 @@ impl OnchainTxHandler { } let mut bump_candidates = HashMap::new(); - for tx in txn_matched { + for &(_, tx) in txn_matched { // Scan all input to verify is one of the outpoint spent is of interest for us let mut claimed_outputs_material = Vec::new(); for inp in &tx.input {