contractcourt/[chain|channel]_arbitrator: define IsPendingClose

This commit is contained in:
Johan T. Halseth
2018-08-21 12:21:16 +02:00
parent 6b24ca0387
commit 1758ad829f
3 changed files with 17 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ func newActiveChannelArbitrator(channel *channeldb.OpenChannel,
},
MarkCommitmentBroadcasted: channel.MarkCommitmentBroadcasted,
MarkChannelClosed: channel.CloseChannel,
IsPendingClose: false,
ChainArbitratorConfig: c.cfg,
ChainEvents: chanEvents,
}
@@ -399,6 +400,9 @@ func (c *ChainArbitrator) Start() error {
BlockEpochs: blockEpoch,
ChainArbitratorConfig: c.cfg,
ChainEvents: &ChainEventSubscription{},
IsPendingClose: true,
ClosingHeight: closeChanInfo.CloseHeight,
CloseType: closeChanInfo.CloseType,
}
chanLog, err := newBoltArbitratorLog(
c.chanSource.DB, arbCfg, c.cfg.ChainHash, chanPoint,