Merge pull request #968 from halseth/chanarb-doublespend

contractcourt/channel_arbitrator: ignore ErrDoubleSpend on force close
This commit is contained in:
Olaoluwa Osuntokun 2018-03-29 16:11:38 -07:00 committed by GitHub
commit a0fe4fb716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -451,7 +451,9 @@ 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)
return StateError, closeTx, err
if err != lnwallet.ErrDoubleSpend {
return StateError, closeTx, err
}
}
// As we've have broadcast the commitment transaction, we send