Skip to content

Commit

Permalink
Do not override lncfg defined value for StrictZombiePruning
Browse files Browse the repository at this point in the history
  • Loading branch information
djkazic authored and kaloudis committed May 31, 2024
1 parent 17efdb6 commit f8e10a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,8 +967,6 @@ func newServer(cfg *Config, listenAddrs []net.Addr,

s.controlTower = routing.NewControlTower(paymentControl)

strictPruning := (cfg.Bitcoin.Node == "neutrino" ||
cfg.Routing.StrictZombiePruning)
s.chanRouter, err = routing.New(routing.Config{
Graph: chanGraph,
Chain: cc.ChainIO,
Expand All @@ -986,7 +984,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
NextPaymentID: sequencer.NextID,
PathFindingConfig: pathFindingConfig,
Clock: clock.NewDefaultClock(),
StrictZombiePruning: strictPruning,
StrictZombiePruning: cfg.Routing.StrictZombiePruning,
IsAlias: aliasmgr.IsAlias,
})
if err != nil {
Expand Down

0 comments on commit f8e10a0

Please sign in to comment.