diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-25 02:05:03 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-25 02:05:03 +0800 |
commit | 21becb0febdf11132a40ff69c6145d9babf8458d (patch) | |
tree | e53e3b84ed5860cd396d9be69db54f644b33dcf7 /rpc/packages.go | |
parent | 5a43173e5599b0f2eceb057b636bc45c4d51919b (diff) | |
download | go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar.gz go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar.bz2 go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar.lz go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar.xz go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.tar.zst go-tangerine-21becb0febdf11132a40ff69c6145d9babf8458d.zip |
Cleanup RPC packcage
Diffstat (limited to 'rpc/packages.go')
-rw-r--r-- | rpc/packages.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpc/packages.go b/rpc/packages.go index 0f00441d2..813fef949 100644 --- a/rpc/packages.go +++ b/rpc/packages.go @@ -9,7 +9,6 @@ For each request type, define the following: package rpc import ( - "fmt" "math/big" "strings" "sync" @@ -410,7 +409,7 @@ func (p *EthereumApi) WhisperMessages(id int, reply *interface{}) error { } func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error { - // Spec at https://github.com/ethereum/wiki/wiki/Generic-ON-RPC + // Spec at https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC rpclogger.DebugDetailf("%T %s", req.Params, req.Params) switch req.Method { case "eth_coinbase": @@ -595,7 +594,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error } return p.WhisperMessages(args, reply) default: - return NewErrorResponse(fmt.Sprintf("%v %s", ErrorNotImplemented, req.Method)) + return NewErrorWithMessage(errNotImplemented, req.Method) } rpclogger.DebugDetailf("Reply: %T %s", reply, reply) |