lnwallet: pack commitment message indices into Dual

This is yet another commit that packs a symmetric structure into
a Dual. This is the last one needed for the time being to consolidate
Num{X}UpdatesPendingOn{Y} functions into a single one.
This commit is contained in:
Keagan McClelland committed 2024-08-28 14:02:59 -07:00
1 parent 2e7fbc446f
commit ce7fcd30f8
2 files changed
+60 -50

No files matched your search

+1 -1
View File
@@ -5230,7 +5230,7 @@ func TestChanCommitWeightDustHtlcs(t *testing.T) {
// transaction.
remoteCommitWeight := func(lc *LightningChannel) lntypes.WeightUnit {
remoteACKedIndex :=
lc.commitChains.Local.tip().theirMessageIndex
lc.commitChains.Local.tip().messageIndices.Remote
htlcView := lc.fetchHTLCView(remoteACKedIndex,
lc.updateLogs.Local.logIndex)