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:
2 files changed
+60
-50
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user