Revert "rpcserver: remove uneccessary signal to breacharbiter at force close"
This reverts commit 0f90c950daaec7843e305f32d10e36411fb0b47f. 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:
parent
4009f7f874
commit
d63b923f5e
@ -1031,6 +1031,12 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
|
||||
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
|
||||
// the channel.
|
||||
chainArbitrator := r.server.chainArb
|
||||
|
Loading…
Reference in New Issue
Block a user