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:
Olaoluwa Osuntokun 2018-04-17 19:05:07 -07:00
parent 4009f7f874
commit d63b923f5e
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -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