node: Rename TrusterNodes (#14827)

* node: Rename TrusterNodes

* node: Rename TrusterNodes
This commit is contained in:
Chase Wright 2017-07-18 03:58:46 -05:00 committed by Péter Szilágyi
parent 4d2249773a
commit 1802682f65
2 changed files with 3 additions and 3 deletions

View File

@ -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))
} }

View File

@ -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()