From eee4c225bf2c02d34f595731a5150e28f77ab64f Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 12 Oct 2017 22:35:39 -0700 Subject: [PATCH] rpcserver: check for errors returned from incubation --- rpcserver.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index cb642b30..42505167 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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 }