mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
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:
parent
fb91f0be70
commit
877b8c55d3
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user