aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-21 23:31:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-28 15:49:04 +0800
commitae4bfc3cfb3f1debad9dd0211950ce09038ffa90 (patch)
treed09f6c0291eab1b02cc1145b816542024e7c4bfa /rpc/api.go
parent15586368e52f49a0f7ea28f890af49d196760846 (diff)
downloadgo-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar.gz
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar.bz2
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar.lz
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar.xz
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.tar.zst
go-tangerine-ae4bfc3cfb3f1debad9dd0211950ce09038ffa90.zip
rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filters
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go
index a73188f07..4da2fb17a 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -422,12 +422,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "shh_newIdentity":
*reply = api.xeth().Whisper().NewIdentity()
- // case "shh_removeIdentity":
- // args := new(WhisperIdentityArgs)
- // if err := json.Unmarshal(req.Params, &args); err != nil {
- // return err
- // }
- // *reply = api.xeth().Whisper().RemoveIdentity(args.Identity)
+
case "shh_hasIdentity":
args := new(WhisperIdentityArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
@@ -439,6 +434,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return NewNotImplementedError(req.Method)
case "shh_newFilter":
+ // Create a new filter to watch and match messages with
args := new(WhisperFilterArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
return err