Merge pull request #968 from halseth/chanarb-doublespend
contractcourt/channel_arbitrator: ignore ErrDoubleSpend on force close
This commit is contained in:
commit
a0fe4fb716
@ -451,8 +451,10 @@ func (c *ChannelArbitrator) stateStep(bestHeight uint32, bestHash *chainhash.Has
|
||||
if err := c.cfg.PublishTx(closeTx); err != nil {
|
||||
log.Errorf("ChannelArbitrator(%v): unable to broadcast "+
|
||||
"close tx: %v", c.cfg.ChanPoint, err)
|
||||
if err != lnwallet.ErrDoubleSpend {
|
||||
return StateError, closeTx, err
|
||||
}
|
||||
}
|
||||
|
||||
// As we've have broadcast the commitment transaction, we send
|
||||
// out commitment output for incubation, but only if it wasn't
|
||||
|
Loading…
Reference in New Issue
Block a user