diff --git a/rpcserver.go b/rpcserver.go index e37a843f..dbf8afc4 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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