From c3f0e608ec7822f5034060091e28b0b44973f6cc Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 19 Apr 2018 09:44:01 +0200 Subject: [PATCH] fundingmanager: remove ArbiterChan --- fundingmanager.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/fundingmanager.go b/fundingmanager.go index 22b5d47c5..36546fb0b 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -218,12 +218,6 @@ type fundingConfig struct { // so that the channel creation process can be completed. Notifier chainntnfs.ChainNotifier - // ArbiterChan allows the FundingManager to notify the BreachArbiter - // that a new channel has been created that should be observed to - // ensure that the channel counterparty hasn't broadcast an invalid - // commitment transaction. - ArbiterChan chan<- wire.OutPoint - // SignMessage signs an arbitrary method with a given public key. The // actual digest signed is the double sha-256 of the message. In the // case that the private key corresponding to the passed public key @@ -2195,15 +2189,6 @@ func (f *fundingManager) handleFundingLocked(fmsg *fundingLockedMsg) { return } - // With the channel retrieved, we'll send the breach arbiter the new - // channel so it can watch for attempts to breach the channel's - // contract by the remote party. - select { - case f.cfg.ArbiterChan <- *channel.ChanPoint: - case <-f.quit: - return - } - // The funding locked message contains the next commitment point we'll // need to create the next commitment state for the remote party. So // we'll insert that into the channel now before passing it along to