You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide inbound HTLC preimages to the EcdsaChannelSigner
The VLS signer has a desire to see preimages for resolved forwarded
HTLCs when they are first claimed by us, even if that claim was for
the inbound edge (where claiming strictly increases our balance).
Luckily, providing that information is rather trivial, which we do
here.
Fixes#2356
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+18-8
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,8 @@ struct CommitmentStats<'a> {
479
479
htlcs_included: Vec<(HTLCOutputInCommitment, Option<&'a HTLCSource>)>, // the list of HTLCs (dust HTLCs *included*) which were not ignored when building the transaction
480
480
local_balance_msat: u64, // local balance before fees but considering dust limits
481
481
remote_balance_msat: u64, // remote balance before fees but considering dust limits
482
-
preimages: Vec<PaymentPreimage>, // preimages for successful offered HTLCs since last commitment
482
+
outbound_htlc_preimages: Vec<PaymentPreimage>, // preimages for successful offered HTLCs since last commitment
483
+
inbound_htlc_preimages: Vec<PaymentPreimage>, // preimages for successful received HTLCs since last commitment
483
484
}
484
485
485
486
/// Used when calculating whether we or the remote can afford an additional HTLC.
0 commit comments