peer+funding: remove unneeded channel handoff code with the breach arbiter
We no longer need to hand off new channels that come online as the chainWatcher will be persistent, and always have an active signal for the entire lifetime of the channel.
This commit is contained in:
5 files changed
+9
-56
No files matched your search
@@ -268,7 +268,6 @@ func lndMain() error {
|
||||
idPrivKey.PubKey())
|
||||
return <-errChan
|
||||
},
|
||||
ArbiterChan: server.breachArbiter.newContracts,
|
||||
SendToPeer: server.SendToPeer,
|
||||
NotifyWhenOnline: server.NotifyWhenOnline,
|
||||
FindPeer: server.FindPeer,
|
||||
@@ -284,7 +283,6 @@ func lndMain() error {
|
||||
// TODO(rosbeef): populate baecon
|
||||
return lnwallet.NewLightningChannel(
|
||||
activeChainControl.signer,
|
||||
activeChainControl.chainNotifier,
|
||||
server.witnessBeacon,
|
||||
channel)
|
||||
}
|
||||
@@ -359,9 +357,7 @@ func lndMain() error {
|
||||
}
|
||||
return delay
|
||||
},
|
||||
ArbitrateNewChan: func(c *channeldb.OpenChannel) error {
|
||||
return server.chainArb.RequestChannelArbitration(c)
|
||||
},
|
||||
WatchNewChannel: server.chainArb.WatchNewChannel,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user