contractcourt: stop writing chain actions to disk

We don't need them as we'll just reconstruct the chain actions once a
commitment has actually confirmed.
This commit is contained in:
Olaoluwa Osuntokun 2019-05-16 17:37:58 -07:00
parent fb91f0be70
commit 877b8c55d3
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -693,9 +693,6 @@ func (c *ChannelArbitrator) stateStep(
newLogClosure(func() string {
return spew.Sdump(chainActions)
}))
if err := c.log.LogChainActions(chainActions); err != nil {
return StateError, closeTx, err
}
// Depending on the type of trigger, we'll either "tunnel"
// through to a farther state, or just proceed linearly to the
@ -838,11 +835,6 @@ func (c *ChannelArbitrator) stateStep(
case StateContractClosed:
// First, we'll fetch our chain actions, and both sets of
// resolutions so we can process them.
_, err := c.log.FetchChainActions()
if err != nil {
log.Errorf("unable to fetch chain actions: %v", err)
return StateError, closeTx, err
}
contractResolutions, err := c.log.FetchContractResolutions()
if err != nil {
log.Errorf("unable to fetch contract resolutions: %v",