multi: make MarkCommitmentBroadcasted take closeTx

This commit is contained in:
Johan T. Halseth
2019-09-06 13:14:39 +02:00
parent a810092e53
commit 02b2787e44
6 changed files with 29 additions and 10 deletions

View File

@@ -891,7 +891,8 @@ func TestFetchWaitingCloseChannels(t *testing.T) {
// This would happen in the event of a force close and should make the
// channels enter a state of waiting close.
for _, channel := range channels {
if err := channel.MarkCommitmentBroadcasted(); err != nil {
closeTx := &wire.MsgTx{}
if err := channel.MarkCommitmentBroadcasted(closeTx); err != nil {
t.Fatalf("unable to mark commitment broadcast: %v", err)
}
}