mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
contractcourt/channel_arbitrator: properly commit to next state
This commit is contained in:
parent
9f4685228e
commit
245dae0071
1 changed files with 5 additions and 1 deletions
|
@ -613,7 +613,11 @@ func (c *ChannelArbitrator) stateStep(triggerHeight uint32,
|
|||
|
||||
log.Infof("ChannelPoint(%v) has been fully resolved "+
|
||||
"on-chain at height=%v", c.cfg.ChanPoint, triggerHeight)
|
||||
return nextState, closeTx, c.cfg.MarkChannelResolved()
|
||||
|
||||
if err := c.cfg.MarkChannelResolved(); err != nil {
|
||||
log.Errorf("unable to mark channel resolved: %v", err)
|
||||
return StateError, closeTx, err
|
||||
}
|
||||
}
|
||||
|
||||
if err := c.log.CommitState(nextState); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue