multi: make MarkCommitmentBroadcasted take closeTx

This commit is contained in:
Johan T. Halseth committed 2019-09-25 14:04:43 +02:00
1 parent a810092e53
commit 02b2787e44
6 files changed
+29 -10

No files matched your search

+2 -1
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)
}
}