diff options
author | bas-vk <bas-vk@users.noreply.github.com> | 2016-07-25 16:07:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 16:07:05 +0800 |
commit | 771655e3fee585ce4bc47dfaa279557c6c1c2421 (patch) | |
tree | 9071e157a54c40f06f0e5895643c82ca9a0b037a /console/console.go | |
parent | 60cd5bf9397bd8331bce3bb1884524d43c31dbb5 (diff) | |
parent | 91b769042857f542b2792b23ec407e1c9bd4fe8d (diff) | |
download | dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar.gz dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar.bz2 dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar.lz dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar.xz dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.tar.zst dexon-771655e3fee585ce4bc47dfaa279557c6c1c2421.zip |
Merge pull request #2808 from fjl/rpc-client-3
rpc: add new client, use it everywhere
Diffstat (limited to 'console/console.go')
-rw-r--r-- | console/console.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console/console.go b/console/console.go index 00d1fea1d..f224f0c2e 100644 --- a/console/console.go +++ b/console/console.go @@ -52,7 +52,7 @@ const DefaultPrompt = "> " type Config struct { DataDir string // Data directory to store the console history at DocRoot string // Filesystem path from where to load JavaScript files from - Client rpc.Client // RPC client to execute Ethereum requests through + Client *rpc.Client // RPC client to execute Ethereum requests through Prompt string // Input prompt prefix string (defaults to DefaultPrompt) Prompter UserPrompter // Input prompter to allow interactive user feedback (defaults to TerminalPrompter) Printer io.Writer // Output writer to serialize any display strings to (defaults to os.Stdout) @@ -63,7 +63,7 @@ type Config struct { // JavaScript console attached to a running node via an external or in-process RPC // client. type Console struct { - client rpc.Client // RPC client to execute Ethereum requests through + client *rpc.Client // RPC client to execute Ethereum requests through jsre *jsre.JSRE // JavaScript runtime environment running the interpreter prompt string // Input prompt prefix string prompter UserPrompter // Input prompter to allow interactive user feedback |