aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/packages.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-25 02:05:03 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-25 02:05:03 +0800
commit21becb0febdf11132a40ff69c6145d9babf8458d (patch)
treee53e3b84ed5860cd396d9be69db54f644b33dcf7 /rpc/packages.go
parent5a43173e5599b0f2eceb057b636bc45c4d51919b (diff)
downloadgo-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.go5
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)