diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 18:48:03 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 18:48:03 +0800 |
commit | 54a14d5c9d7d1e5039753eac991cd057a5514fe8 (patch) | |
tree | 322f74746ac7a2ddfea0e5fbb42383f46d5aad15 /cmd/geth/admin.go | |
parent | 09280c5f11993ee64ce231433270345c7e253ee3 (diff) | |
parent | e29396b6915a27d3e44be45fe9e540c6ef39f1dd (diff) | |
download | go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.gz go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.bz2 go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.lz go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.xz go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.zst go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.zip |
Merge pull request #584 from tgerring/issue577
Use ExtraDB for RPC storage. Fixes #577
Diffstat (limited to 'cmd/geth/admin.go')
-rw-r--r-- | cmd/geth/admin.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go index 139395dad..3a58b8881 100644 --- a/cmd/geth/admin.go +++ b/cmd/geth/admin.go @@ -9,10 +9,10 @@ import ( "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/xeth" "github.com/robertkrimen/otto" ) @@ -69,14 +69,13 @@ func (js *jsre) startRPC(call otto.FunctionCall) otto.Value { fmt.Println(err) return otto.FalseValue() } - dataDir := js.ethereum.DataDir l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", addr, port)) if err != nil { fmt.Printf("Can't listen on %s:%d: %v", addr, port, err) return otto.FalseValue() } - go http.Serve(l, rpc.JSONRPC(xeth.New(js.ethereum, nil), dataDir)) + go http.Serve(l, rpc.JSONRPC(xeth.New(js.ethereum, nil))) return otto.TrueValue() } |