fundingmanager: remove ArbiterChan
This commit is contained in:
parent
409ab08c36
commit
c3f0e608ec
@ -218,12 +218,6 @@ type fundingConfig struct {
|
|||||||
// so that the channel creation process can be completed.
|
// so that the channel creation process can be completed.
|
||||||
Notifier chainntnfs.ChainNotifier
|
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
|
// SignMessage signs an arbitrary method with a given public key. The
|
||||||
// actual digest signed is the double sha-256 of the message. In 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
|
// case that the private key corresponding to the passed public key
|
||||||
@ -2195,15 +2189,6 @@ func (f *fundingManager) handleFundingLocked(fmsg *fundingLockedMsg) {
|
|||||||
return
|
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
|
// The funding locked message contains the next commitment point we'll
|
||||||
// need to create the next commitment state for the remote party. So
|
// 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
|
// we'll insert that into the channel now before passing it along to
|
||||||
|
Loading…
Reference in New Issue
Block a user