rpcserver: check for errors returned from incubation

This commit is contained in:
Conner Fromknecht 2017-10-12 22:35:39 -07:00
parent 2b74a6549f
commit eee4c225bf
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -942,7 +942,9 @@ func (r *rpcServer) forceCloseChan(channel *lnwallet.LightningChannel) (*chainha
// Send the closed channel summary over to the utxoNursery in order to
// have its outputs swept back into the wallet once they're mature.
r.server.utxoNursery.IncubateOutputs(closeSummary)
if err := r.server.utxoNursery.IncubateOutputs(closeSummary); err != nil {
return nil, nil, err
}
return &txid, closeSummary, nil
}