diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-02-09 20:10:40 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-02-09 20:10:40 +0800 |
commit | df75dbfd6804923b1c8a8388b67523072d59f155 (patch) | |
tree | 5191e9a8004499727a42336be1f092bc04943ae8 /cmd/geth/main.go | |
parent | 900e124beea551ded290f61e7bf85ff6b2e4a29e (diff) | |
download | dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar.gz dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar.bz2 dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar.lz dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar.xz dexon-df75dbfd6804923b1c8a8388b67523072d59f155.tar.zst dexon-df75dbfd6804923b1c8a8388b67523072d59f155.zip |
cmd, node, rpc: readd inproc RPC client, expose via node
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 5c07be3f6..8594d18c5 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -425,7 +425,7 @@ func console(ctx *cli.Context) { startNode(ctx, node) // Attach to the newly started node, and either execute script or become interactive - client, err := utils.NewRemoteRPCClientFromString("ipc:" + node.IPCEndpoint()) + client, err := node.Attach() if err != nil { utils.Fatalf("Failed to attach to the inproc geth: %v", err) } @@ -451,7 +451,7 @@ func execScripts(ctx *cli.Context) { startNode(ctx, node) // Attach to the newly started node and execute the given scripts - client, err := utils.NewRemoteRPCClientFromString("ipc:" + node.IPCEndpoint()) + client, err := node.Attach() if err != nil { utils.Fatalf("Failed to attach to the inproc geth: %v", err) } |