diff options
author | Chase Wright <mysticryuujin@gmail.com> | 2017-07-18 16:58:46 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-07-18 16:58:46 +0800 |
commit | 1802682f65655a69cb17c21113100bac16539192 (patch) | |
tree | 3dbf442ba987f5d7ebbe9d12205d98ee94fe1906 /node | |
parent | 4d2249773a6dbab04ec0656a9c6687a66a16edf0 (diff) | |
download | go-tangerine-1802682f65655a69cb17c21113100bac16539192.tar.gz go-tangerine-1802682f65655a69cb17c21113100bac16539192.tar.zst go-tangerine-1802682f65655a69cb17c21113100bac16539192.zip |
node: Rename TrusterNodes (#14827)
* node: Rename TrusterNodes
* node: Rename TrusterNodes
Diffstat (limited to 'node')
-rw-r--r-- | node/config.go | 4 | ||||
-rw-r--r-- | 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() |