aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:00:18 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:00:18 +0800
commitb7745c683529bc60139d4af7fec2bf849928bfe7 (patch)
tree4d75290e68a10cffa4d190a665fc0777535129ed
parent6cc02aadbff9c37cc623fadb21029527a11a06f4 (diff)
downloaddexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar.gz
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar.bz2
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar.lz
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar.xz
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.tar.zst
dexon-b7745c683529bc60139d4af7fec2bf849928bfe7.zip
inline HasWhisperIdentity
-rw-r--r--rpc/api.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 7fc8f32e2..54efd6005 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -416,11 +416,6 @@ func (p *EthereumApi) WhisperPost(args *WhisperMessageArgs, reply *interface{})
return nil
}
-func (p *EthereumApi) HasWhisperIdentity(args string, reply *interface{}) error {
- *reply = p.xeth().Whisper().HasIdentity(args)
- return nil
-}
-
func (p *EthereumApi) WhisperMessages(id int, reply *interface{}) error {
*reply = p.xeth().Whisper().Messages(id)
return nil
@@ -763,7 +758,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- return p.HasWhisperIdentity(args.Identity, reply)
+ *reply = p.xeth().Whisper().HasIdentity(args.Identity)
case "shh_newGroup", "shh_addToGroup":
return NewNotImplementedError(req.Method)
case "shh_newFilter":