diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 08:00:18 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 08:00:18 +0800 |
commit | b7745c683529bc60139d4af7fec2bf849928bfe7 (patch) | |
tree | 4d75290e68a10cffa4d190a665fc0777535129ed /rpc | |
parent | 6cc02aadbff9c37cc623fadb21029527a11a06f4 (diff) | |
download | dexon-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
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 7 |
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": |