rpcserver: check for errors returned from incubation

This commit is contained in:
Conner Fromknecht committed 2017-11-16 16:16:04 -08:00
1 parent 2b74a6549f
commit eee4c225bf
1 file changed
+3 -1
+3 -1
View File
@@ -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
}