rpcserver: check for errors returned from incubation
This commit is contained in:
parent
2b74a6549f
commit
eee4c225bf
@ -942,7 +942,9 @@ func (r *rpcServer) forceCloseChan(channel *lnwallet.LightningChannel) (*chainha
|
|||||||
|
|
||||||
// Send the closed channel summary over to the utxoNursery in order to
|
// Send the closed channel summary over to the utxoNursery in order to
|
||||||
// have its outputs swept back into the wallet once they're mature.
|
// 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
|
return &txid, closeSummary, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user