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
+1
-2
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user