diff --git a/lnwallet/channel.go b/lnwallet/channel.go index fa0e1cfa77..8e4defb3b5 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -26,6 +26,7 @@ import ( "github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/channeldb/models" "github.com/lightningnetwork/lnd/input" + "github.com/lightningnetwork/lnd/keychain" "github.com/lightningnetwork/lnd/lnwallet/chainfee" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/shachain" @@ -5130,7 +5131,7 @@ func (lc *LightningChannel) RevokeCurrentCommitment() (*lnwire.RevokeAndAck, ) } - return revocationMsg, newCommitment.Htlcs, nil + return revocationMsg, newCommitment.Htlcs, finalHtlcs, nil } // ReceiveRevocation processes a revocation sent by the remote party for the diff --git a/lnwallet/channel_test.go b/lnwallet/channel_test.go index 54e5bed643..47f22b68ae 100644 --- a/lnwallet/channel_test.go +++ b/lnwallet/channel_test.go @@ -74,7 +74,7 @@ func testAddSettleWorkflow(t *testing.T, tweakless bool, chanType |= chanTypeModifier } - aliceChannel, bobChannel, cleanUp, err := CreateTestChannels(chanType) + aliceChannel, bobChannel, err := CreateTestChannels(t, chanType) require.NoError(t, err, "unable to create test channels") paymentPreimage := bytes.Repeat([]byte{1}, 32) @@ -3598,7 +3598,7 @@ func TestChanSyncOweRevocationAndCommit(t *testing.T) { require.NoError(t, err, "alice unable to recv revocation") err = aliceChannel.ReceiveNewCommitment(bobNewCommit.CommitSigs) require.NoError(t, err, "alice unable to recv bob's commitment") - aliceRevocation, _, err := aliceChannel.RevokeCurrentCommitment() + aliceRevocation, _, _, err := aliceChannel.RevokeCurrentCommitment() require.NoError(t, err, "alice unable to revoke commitment") _, _, _, _, err = bobChannel.ReceiveRevocation(aliceRevocation) require.NoError(t, err, "bob unable to recv revocation")