mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-06 09:50:23 +02:00
lnwallet/channel test: take commitPoint in NewUnilateralCloseSummary
This commit is contained in:
parent
06ceba429f
commit
d9e9b6197c
@ -4397,8 +4397,10 @@ func TestChannelUnilateralCloseHtlcResolution(t *testing.T) {
|
|||||||
SpenderTxHash: &commitTxHash,
|
SpenderTxHash: &commitTxHash,
|
||||||
}
|
}
|
||||||
aliceCloseSummary, err := NewUnilateralCloseSummary(
|
aliceCloseSummary, err := NewUnilateralCloseSummary(
|
||||||
aliceChannel.channelState, aliceChannel.Signer, aliceChannel.pCache,
|
aliceChannel.channelState, aliceChannel.Signer,
|
||||||
spendDetail, aliceChannel.channelState.RemoteCommitment, false,
|
aliceChannel.pCache, spendDetail,
|
||||||
|
aliceChannel.channelState.RemoteCommitment,
|
||||||
|
aliceChannel.channelState.RemoteCurrentRevocation,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create alice close summary: %v", err)
|
t.Fatalf("unable to create alice close summary: %v", err)
|
||||||
@ -4545,8 +4547,10 @@ func TestChannelUnilateralClosePendingCommit(t *testing.T) {
|
|||||||
// using this commitment, but with the wrong state, we should find that
|
// using this commitment, but with the wrong state, we should find that
|
||||||
// our output wasn't picked up.
|
// our output wasn't picked up.
|
||||||
aliceWrongCloseSummary, err := NewUnilateralCloseSummary(
|
aliceWrongCloseSummary, err := NewUnilateralCloseSummary(
|
||||||
aliceChannel.channelState, aliceChannel.Signer, aliceChannel.pCache,
|
aliceChannel.channelState, aliceChannel.Signer,
|
||||||
spendDetail, aliceChannel.channelState.RemoteCommitment, false,
|
aliceChannel.pCache, spendDetail,
|
||||||
|
aliceChannel.channelState.RemoteCommitment,
|
||||||
|
aliceChannel.channelState.RemoteCurrentRevocation,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create alice close summary: %v", err)
|
t.Fatalf("unable to create alice close summary: %v", err)
|
||||||
@ -4564,8 +4568,10 @@ func TestChannelUnilateralClosePendingCommit(t *testing.T) {
|
|||||||
t.Fatalf("unable to fetch remote chain tip: %v", err)
|
t.Fatalf("unable to fetch remote chain tip: %v", err)
|
||||||
}
|
}
|
||||||
aliceCloseSummary, err := NewUnilateralCloseSummary(
|
aliceCloseSummary, err := NewUnilateralCloseSummary(
|
||||||
aliceChannel.channelState, aliceChannel.Signer, aliceChannel.pCache,
|
aliceChannel.channelState, aliceChannel.Signer,
|
||||||
spendDetail, aliceRemoteChainTip.Commitment, true,
|
aliceChannel.pCache, spendDetail,
|
||||||
|
aliceRemoteChainTip.Commitment,
|
||||||
|
aliceChannel.channelState.RemoteNextRevocation,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create alice close summary: %v", err)
|
t.Fatalf("unable to create alice close summary: %v", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user