mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
node: Rename TrusterNodes (#14827)
* node: Rename TrusterNodes * node: Rename TrusterNodes
This commit is contained in:
parent
4d2249773a
commit
1802682f65
@ -316,8 +316,8 @@ func (c *Config) StaticNodes() []*discover.Node {
|
|||||||
return c.parsePersistentNodes(c.resolvePath(datadirStaticNodes))
|
return c.parsePersistentNodes(c.resolvePath(datadirStaticNodes))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TrusterNodes returns a list of node enode URLs configured as trusted nodes.
|
// TrustedNodes returns a list of node enode URLs configured as trusted nodes.
|
||||||
func (c *Config) TrusterNodes() []*discover.Node {
|
func (c *Config) TrustedNodes() []*discover.Node {
|
||||||
return c.parsePersistentNodes(c.resolvePath(datadirTrustedNodes))
|
return c.parsePersistentNodes(c.resolvePath(datadirTrustedNodes))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ func (n *Node) Start() error {
|
|||||||
n.serverConfig.StaticNodes = n.config.StaticNodes()
|
n.serverConfig.StaticNodes = n.config.StaticNodes()
|
||||||
}
|
}
|
||||||
if n.serverConfig.TrustedNodes == nil {
|
if n.serverConfig.TrustedNodes == nil {
|
||||||
n.serverConfig.TrustedNodes = n.config.TrusterNodes()
|
n.serverConfig.TrustedNodes = n.config.TrustedNodes()
|
||||||
}
|
}
|
||||||
if n.serverConfig.NodeDatabase == "" {
|
if n.serverConfig.NodeDatabase == "" {
|
||||||
n.serverConfig.NodeDatabase = n.config.NodeDB()
|
n.serverConfig.NodeDatabase = n.config.NodeDB()
|
||||||
|
Loading…
Reference in New Issue
Block a user