aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-17 22:22:35 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 15:17:09 +0800
commita4a4e9fcf824189d8d06940492a01effe6e6cf92 (patch)
tree5e7b9cea12d319e4ab1d6ca746102e080259297f /cmd/geth/main.go
parent3e1d635f8d40815ef2262e017a969ed6f5eb2a5d (diff)
downloadgo-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.gz
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.bz2
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.lz
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.xz
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.zst
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.zip
removed old rpc structure and added new inproc api client
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 43e45f6cc..5c4c33cea 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -38,6 +38,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/rpc/codec"
+ "github.com/ethereum/go-ethereum/rpc/comms"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
)
@@ -310,12 +312,14 @@ func console(ctx *cli.Context) {
utils.Fatalf("%v", err)
}
+ client := comms.NewInProcClient(codec.JSON)
+
startEth(ctx, ethereum)
repl := newJSRE(
ethereum,
ctx.String(utils.JSpathFlag.Name),
ctx.GlobalString(utils.RPCCORSDomainFlag.Name),
- utils.IpcSocketPath(ctx),
+ client,
true,
nil,
)
@@ -332,12 +336,13 @@ func execJSFiles(ctx *cli.Context) {
utils.Fatalf("%v", err)
}
+ client := comms.NewInProcClient(codec.JSON)
startEth(ctx, ethereum)
repl := newJSRE(
ethereum,
ctx.String(utils.JSpathFlag.Name),
ctx.GlobalString(utils.RPCCORSDomainFlag.Name),
- utils.IpcSocketPath(ctx),
+ client,
false,
nil,
)