Skip to content

Commit eb04de5

Browse files
committed
f drop htlc value in IrrevocableResolvedHTLC
1 parent 4fb838a commit eb04de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,9 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
15331533
claimable_amount_satoshis: amount_sats,
15341534
});
15351535
}
1536-
} else if let Some(Some(val)) = htlc_resolved.map(|v| v.onchain_value_satoshis) {
1536+
} else if htlc_resolved.is_some() {
15371537
res.push(Balance::CounterpartyRevokedOutputClaimable {
1538-
claimable_amount_satoshis: val,
1538+
claimable_amount_satoshis: htlc.amount_msat / 1000,
15391539
});
15401540
} else {
15411541
debug_assert!(htlc_update_pending.is_none(),

0 commit comments

Comments
 (0)