mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02: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:
@@ -693,9 +693,6 @@ func (c *ChannelArbitrator) stateStep(
|
|||||||
newLogClosure(func() string {
|
newLogClosure(func() string {
|
||||||
return spew.Sdump(chainActions)
|
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"
|
// Depending on the type of trigger, we'll either "tunnel"
|
||||||
// through to a farther state, or just proceed linearly to the
|
// through to a farther state, or just proceed linearly to the
|
||||||
@@ -838,11 +835,6 @@ func (c *ChannelArbitrator) stateStep(
|
|||||||
case StateContractClosed:
|
case StateContractClosed:
|
||||||
// First, we'll fetch our chain actions, and both sets of
|
// First, we'll fetch our chain actions, and both sets of
|
||||||
// resolutions so we can process them.
|
// 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()
|
contractResolutions, err := c.log.FetchContractResolutions()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("unable to fetch contract resolutions: %v",
|
log.Errorf("unable to fetch contract resolutions: %v",
|
||||||
|
Reference in New Issue
Block a user