From d5cae48bae81cd6072255150162b26a3653f176e Mon Sep 17 00:00:00 2001 From: gary rong Date: Thu, 4 Apr 2019 19:03:10 +0800 Subject: accounts, cmd, internal: disable unlock account on open HTTP (#17037) * cmd, accounts, internal, node, rpc, signer: insecure unlock protect * all: strict unlock API by rpc * cmd/geth: check before printing warning log * accounts, cmd/geth, internal: tiny polishes --- node/node.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node/node.go') diff --git a/node/node.go b/node/node.go index bd031bd0f..f4c7d8c72 100644 --- a/node/node.go +++ b/node/node.go @@ -251,6 +251,11 @@ func (n *Node) Start() error { return nil } +// Config returns the configuration of node. +func (n *Node) Config() *Config { + return n.config +} + func (n *Node) openDataDir() error { if n.config.DataDir == "" { return nil // ephemeral -- cgit v1.2.3