aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorChase Wright <mysticryuujin@gmail.com>2017-07-18 16:58:46 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-07-18 16:58:46 +0800
commit1802682f65655a69cb17c21113100bac16539192 (patch)
tree3dbf442ba987f5d7ebbe9d12205d98ee94fe1906 /node
parent4d2249773a6dbab04ec0656a9c6687a66a16edf0 (diff)
downloaddexon-1802682f65655a69cb17c21113100bac16539192.tar
dexon-1802682f65655a69cb17c21113100bac16539192.tar.gz
dexon-1802682f65655a69cb17c21113100bac16539192.tar.bz2
dexon-1802682f65655a69cb17c21113100bac16539192.tar.lz
dexon-1802682f65655a69cb17c21113100bac16539192.tar.xz
dexon-1802682f65655a69cb17c21113100bac16539192.tar.zst
dexon-1802682f65655a69cb17c21113100bac16539192.zip
node: Rename TrusterNodes (#14827)
* node: Rename TrusterNodes * node: Rename TrusterNodes
Diffstat (limited to 'node')
-rw-r--r--node/config.go4
-rw-r--r--node/node.go2
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()