discovery: use a no-op hash accumluator for local networks
If LND is running on a local network, then use deterministic sampling so that we can have deterministic peer bootstrapping.
This commit is contained in:
3 files changed
+51
-8
No files matched your search
@@ -3064,7 +3064,9 @@ func initNetworkBootstrappers(s *server) ([]discovery.NetworkPeerBootstrapper, e
|
||||
// this can be used by default if we've already partially seeded the
|
||||
// network.
|
||||
chanGraph := autopilot.ChannelGraphFromDatabase(s.graphDB)
|
||||
graphBootstrapper, err := discovery.NewGraphBootstrapper(chanGraph)
|
||||
graphBootstrapper, err := discovery.NewGraphBootstrapper(
|
||||
chanGraph, s.cfg.Bitcoin.IsLocalNetwork(),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user