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:
Olaoluwa Osuntokun committed 2018-01-22 19:19:50 -08:00
1 parent a0cc1d1b2d
commit 69e6ec9954
5 files changed
+9 -56

No files matched your search

+1 -2
View File
@@ -825,7 +825,6 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
return err
}
channel.Stop()
channel.CancelObserver()
_, bestHeight, err := r.server.cc.chainIO.GetBestBlock()
if err != nil {
@@ -986,7 +985,7 @@ func (r *rpcServer) fetchActiveChannel(chanPoint wire.OutPoint) (*lnwallet.Light
// Otherwise, we create a fully populated channel state machine which
// uses the db channel as backing storage.
return lnwallet.NewLightningChannel(
r.server.cc.wallet.Cfg.Signer, nil, nil, dbChan,
r.server.cc.wallet.Cfg.Signer, nil, dbChan,
)
}