contractcourt/channel arbitrator: add coopCloseTrigger on startup for pendingClose channel

This commit is contained in:
Johan T. Halseth committed 2018-08-23 10:04:43 +02:00
1 parent 47788c3cec
commit 4933120d38
1 file changed
+5
+5
View File
@@ -277,8 +277,13 @@ func (c *ChannelArbitrator) Start() error {
fallthrough
case StateCommitmentBroadcasted:
switch c.cfg.CloseType {
case channeldb.CooperativeClose:
trigger = coopCloseTrigger
case channeldb.LocalForceClose:
trigger = localCloseTrigger
case channeldb.RemoteForceClose:
trigger = remoteCloseTrigger
}