aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:12:52 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:12:52 +0800
commitb28e6d830606346d42d46ab657d3ba2b5b1a994e (patch)
treec866c9d8411b0adf896fe5ee9d99b0d69e568835 /rpc
parentcc91ba0add5e21a6d2f67a16ee5f08b74b597edd (diff)
downloadgo-tangerine-b28e6d830606346d42d46ab657d3ba2b5b1a994e.tar.gz
go-tangerine-b28e6d830606346d42d46ab657d3ba2b5b1a994e.tar.zst
go-tangerine-b28e6d830606346d42d46ab657d3ba2b5b1a994e.zip
inline WhisperMessages
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go
index ff89bbecf..2b2467400 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -347,11 +347,6 @@ func (p *EthereumApi) WhisperPost(args *WhisperMessageArgs, reply *interface{})
return nil
}
-func (p *EthereumApi) WhisperMessages(id int, reply *interface{}) error {
- *reply = p.xeth().Whisper().Messages(id)
- return nil
-}
-
func (p *EthereumApi) GetBlockByHash(blockhash string, includetx bool) (*BlockRes, error) {
block := p.xeth().EthBlockByHash(blockhash)
br := NewBlockRes(block)
@@ -742,7 +737,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- return p.WhisperMessages(args.Id, reply)
+ *reply = p.xeth().Whisper().Messages(id)
// case "eth_register":
// args, err := req.ToRegisterArgs()
// if err != nil {