node: Rename TrusterNodes (#14827)

* node: Rename TrusterNodes

* node: Rename TrusterNodes
pull/14844/merge
Chase Wright 7 years ago committed by Péter Szilágyi
parent 4d2249773a
commit 1802682f65
  1. 4
      node/config.go
  2. 2
      node/node.go

@ -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…
Cancel
Save