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))
|
||||
}
|
||||
|
||||
// TrusterNodes returns a list of node enode URLs configured as trusted nodes.
|
||||
func (c *Config) TrusterNodes() []*discover.Node {
|
||||
// TrustedNodes returns a list of node enode URLs configured as trusted nodes.
|
||||
func (c *Config) TrustedNodes() []*discover.Node {
|
||||
return c.parsePersistentNodes(c.resolvePath(datadirTrustedNodes))
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ func (n *Node) Start() error {
|
|||
n.serverConfig.StaticNodes = n.config.StaticNodes()
|
||||
}
|
||||
if n.serverConfig.TrustedNodes == nil {
|
||||
n.serverConfig.TrustedNodes = n.config.TrusterNodes()
|
||||
n.serverConfig.TrustedNodes = n.config.TrustedNodes()
|
||||
}
|
||||
if n.serverConfig.NodeDatabase == "" {
|
||||
n.serverConfig.NodeDatabase = n.config.NodeDB()
|
||||
|
|
Loading…
Reference in New Issue