mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
contractcourt: add onchain interception
This commit is contained in:
@@ -595,8 +595,6 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
|
||||
s.witnessBeacon = newPreimageBeacon(dbs.ChanStateDB.NewWitnessCache())
|
||||
|
||||
currentHash, currentHeight, err := s.cc.ChainIO.GetBestBlock()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -656,6 +654,11 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
s.cfg.RequireInterceptor,
|
||||
)
|
||||
|
||||
s.witnessBeacon = newPreimageBeacon(
|
||||
dbs.ChanStateDB.NewWitnessCache(),
|
||||
s.interceptableSwitch.ForwardPacket,
|
||||
)
|
||||
|
||||
chanStatusMgrCfg := &netann.ChanStatusConfig{
|
||||
ChanStatusSampleInterval: cfg.ChanStatusSampleInterval,
|
||||
ChanEnableTimeout: cfg.ChanEnableTimeout,
|
||||
|
Reference in New Issue
Block a user