Skip to content

Commit 7f93c5f

Browse files
committed
f rustfmt
1 parent 87ae44d commit 7f93c5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,7 +2977,9 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
29772977
// transaction reaches ANTI_REORG_DELAY confirmations.
29782978
res.insert(source.clone(), htlc.clone());
29792979
}
2980-
} else if let Some(state) = us.htlcs_resolved_on_chain.iter().filter(filter).next() {
2980+
} else if let Some(state) =
2981+
us.htlcs_resolved_on_chain.iter().filter(filter).next()
2982+
{
29812983
if let Some(source) = source {
29822984
if state.payment_preimage.is_none() {
29832985
res.insert(source.clone(), htlc.clone());
@@ -2988,7 +2990,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
29882990
};
29892991
}
29902992

2991-
29922993
// We only want HTLCs with ANTI_REORG_DELAY confirmations, which implies the commitment
29932994
// transaction has least ANTI_REORG_DELAY confirmations for any dependent HTLC transactions
29942995
// to have been confirmed.

0 commit comments

Comments
 (0)