File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12967,17 +12967,17 @@ where
12967
12967
// inbound edge of the payment's monitor has already claimed
12968
12968
// the HTLC) we skip trying to replay the claim.
12969
12969
let htlc_payment_hash: PaymentHash = payment_preimage.into();
12970
- if ! inbound_edge_balances.iter().all (|bal| {
12970
+ if inbound_edge_balances.iter().any (|bal| {
12971
12971
match bal {
12972
12972
Balance::ClaimableOnChannelClose { .. } => {
12973
12973
// The channel is still open, assume we can still
12974
12974
// claim against it
12975
- false
12975
+ true
12976
12976
},
12977
12977
Balance::MaybePreimageClaimableHTLC { payment_hash, .. } => {
12978
- *payment_hash ! = htlc_payment_hash
12978
+ *payment_hash = = htlc_payment_hash
12979
12979
},
12980
- _ => true ,
12980
+ _ => false ,
12981
12981
}
12982
12982
}) {
12983
12983
return None;
You can’t perform that action at this time.
0 commit comments