Skip to content

Commit 717c9a3

Browse files
committed
[temp] - lnwallet: channel rebase fix
1 parent 3ed5a38 commit 717c9a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lnwallet/channel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
"github.com/lightningnetwork/lnd/channeldb"
2727
"github.com/lightningnetwork/lnd/channeldb/models"
2828
"github.com/lightningnetwork/lnd/input"
29+
"github.com/lightningnetwork/lnd/keychain"
2930
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
3031
"github.com/lightningnetwork/lnd/lnwire"
3132
"github.com/lightningnetwork/lnd/shachain"
@@ -5130,7 +5131,7 @@ func (lc *LightningChannel) RevokeCurrentCommitment() (*lnwire.RevokeAndAck,
51305131
)
51315132
}
51325133

5133-
return revocationMsg, newCommitment.Htlcs, nil
5134+
return revocationMsg, newCommitment.Htlcs, finalHtlcs, nil
51345135
}
51355136

51365137
// ReceiveRevocation processes a revocation sent by the remote party for the

lnwallet/channel_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func testAddSettleWorkflow(t *testing.T, tweakless bool,
7474
chanType |= chanTypeModifier
7575
}
7676

77-
aliceChannel, bobChannel, cleanUp, err := CreateTestChannels(chanType)
77+
aliceChannel, bobChannel, err := CreateTestChannels(t, chanType)
7878
require.NoError(t, err, "unable to create test channels")
7979

8080
paymentPreimage := bytes.Repeat([]byte{1}, 32)
@@ -3598,7 +3598,7 @@ func TestChanSyncOweRevocationAndCommit(t *testing.T) {
35983598
require.NoError(t, err, "alice unable to recv revocation")
35993599
err = aliceChannel.ReceiveNewCommitment(bobNewCommit.CommitSigs)
36003600
require.NoError(t, err, "alice unable to recv bob's commitment")
3601-
aliceRevocation, _, err := aliceChannel.RevokeCurrentCommitment()
3601+
aliceRevocation, _, _, err := aliceChannel.RevokeCurrentCommitment()
36023602
require.NoError(t, err, "alice unable to revoke commitment")
36033603
_, _, _, _, err = bobChannel.ReceiveRevocation(aliceRevocation)
36043604
require.NoError(t, err, "bob unable to recv revocation")

0 commit comments

Comments
 (0)