mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 22:54:26 +01:00
Revert "rpcserver: remove uneccessary signal to breacharbiter at force close"
This reverts commit 0f90c950da.
We actually still need to notify the BRAR of a force close, as
otherwise, it doesn't have a signal to exit due to a local force close
event.
This commit is contained in:
@@ -1031,6 +1031,12 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
|
|||||||
r.server.htlcSwitch.RemoveLink(chanID)
|
r.server.htlcSwitch.RemoveLink(chanID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
case r.server.breachArbiter.settledContracts <- *chanPoint:
|
||||||
|
case <-r.quit:
|
||||||
|
return fmt.Errorf("server shutting down")
|
||||||
|
}
|
||||||
|
|
||||||
// With the necessary indexes cleaned up, we'll now force close
|
// With the necessary indexes cleaned up, we'll now force close
|
||||||
// the channel.
|
// the channel.
|
||||||
chainArbitrator := r.server.chainArb
|
chainArbitrator := r.server.chainArb
|
||||||
|
|||||||
Reference in New Issue
Block a user