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
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+20-10
Original file line number
Diff line number
Diff line change
@@ -512,7 +512,8 @@ struct CommitmentStats<'a> {
512
512
htlcs_included: Vec<(HTLCOutputInCommitment, Option<&'a HTLCSource>)>, // the list of HTLCs (dust HTLCs *included*) which were not ignored when building the transaction
513
513
local_balance_msat: u64, // local balance before fees but considering dust limits
514
514
remote_balance_msat: u64, // remote balance before fees but considering dust limits
515
-
preimages: Vec<PaymentPreimage>, // preimages for successful offered HTLCs since last commitment
515
+
outbound_htlc_preimages: Vec<PaymentPreimage>, // preimages for successful offered HTLCs since last commitment
516
+
inbound_htlc_preimages: Vec<PaymentPreimage>, // preimages for successful received HTLCs since last commitment
516
517
}
517
518
518
519
/// Used when calculating whether we or the remote can afford an additional HTLC.
assert!(idx == state.last_holder_commitment || idx == state.last_holder_commitment - 1,"expecting to validate the current or next holder commitment - trying {}, current {}", idx, state.last_holder_commitment);
@@ -166,7 +166,7 @@ impl ChannelSigner for TestChannelSigner {
0 commit comments