node: drop support for static & trusted node list files (#25610)
This changes the node setup to ignore datadir files
static-nodes.json
trusted-nodes.json
When these files are present, it an error will be printed to the log.
This commit is contained in:
1 parent
e257b3add7
commit
3630cafb34
2 files changed
+24
-62
No files matched your search
+1
-6
@@ -133,12 +133,7 @@ func New(conf *Config) (*Node, error) {
|
||||
node.server.Config.PrivateKey = node.config.NodeKey()
|
||||
node.server.Config.Name = node.config.NodeName()
|
||||
node.server.Config.Logger = node.log
|
||||
if node.server.Config.StaticNodes == nil {
|
||||
node.server.Config.StaticNodes = node.config.StaticNodes()
|
||||
}
|
||||
if node.server.Config.TrustedNodes == nil {
|
||||
node.server.Config.TrustedNodes = node.config.TrustedNodes()
|
||||
}
|
||||
node.config.checkLegacyFiles()
|
||||
if node.server.Config.NodeDatabase == "" {
|
||||
node.server.Config.NodeDatabase = node.config.NodeDB()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user