From 1802682f65655a69cb17c21113100bac16539192 Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Tue, 18 Jul 2017 03:58:46 -0500 Subject: [PATCH] node: Rename TrusterNodes (#14827) * node: Rename TrusterNodes * node: Rename TrusterNodes --- node/config.go | 4 ++-- node/node.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/config.go b/node/config.go index 61e0008ef..abbe64f43 100644 --- a/node/config.go +++ b/node/config.go @@ -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)) } diff --git a/node/node.go b/node/node.go index a372b1c25..e3f0232b4 100644 --- a/node/node.go +++ b/node/node.go @@ -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()