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

This commit is contained in:
Johan T. Halseth 2018-08-23 10:04:43 +02:00
parent 47788c3cec
commit 4933120d38
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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
}