mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-20 10:02:33 +02:00
rpcserver: check for errors returned from incubation
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user