utoxnursery: allow nursery to start up if timeout spend happens

Fixes #2793.
This commit is contained in:
Olaoluwa Osuntokun 2019-03-18 20:56:44 -07:00
parent db411c244e
commit 1cea8d98c9
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -894,7 +894,7 @@ func (u *utxoNursery) sweepCribOutput(classHeight uint32, baby *babyOutput) erro
// We'll now broadcast the HTLC transaction, then wait for it to be
// confirmed before transitioning it to kindergarten.
err := u.cfg.PublishTransaction(baby.timeoutTx)
if err != nil {
if err != nil && err != lnwallet.ErrDoubleSpend {
utxnLog.Errorf("Unable to broadcast baby tx: "+
"%v, %v", err, spew.Sdump(baby.timeoutTx))
return err