aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 01:07:05 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 01:07:05 +0800
commit0d8d51084f2e6622170f5c2b03c92450cb35b25f (patch)
tree7a953b61f97dd43310f25cf1b26975a0c4646b6f /rpc/api.go
parent90ceb5218cec788de83842e9b38d63af24af5ffd (diff)
downloadgo-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar.gz
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar.bz2
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar.lz
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar.xz
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.tar.zst
go-tangerine-0d8d51084f2e6622170f5c2b03c92450cb35b25f.zip
Final name changes
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/rpc/api.go b/rpc/api.go
index d0181463d..9d00ae340 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -571,7 +571,8 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return p.Call(args, reply)
case "eth_flush":
return errNotImplemented
- case "eth_getBlockByNumber", "eth_getBlockByHash":
+ case "eth_getBlockByNumber":
+ case "eth_getBlockByHash":
// TODO handle second param for "include transaction objects"
args, err := req.ToGetBlockArgs()
if err != nil {
@@ -601,12 +602,12 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return err
}
return p.NewFilter(args, reply)
- // case "eth_newFilterString":
- // args, err := req.ToFilterStringArgs()
- // if err != nil {
- // return err
- // }
- // return p.NewFilterString(args, reply)
+ case "eth_newBlockFilter":
+ args, err := req.ToFilterStringArgs()
+ if err != nil {
+ return err
+ }
+ return p.NewFilterString(args, reply)
case "eth_newBlockFilter":
return errNotImplemented
case "eth_uninstallFilter":
@@ -691,7 +692,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return p.NewWhisperFilter(args, reply)
case "shh_uninstallFilter":
return errNotImplemented
- case "shh_changed":
+ case "shh_getFilterChanges":
args, err := req.ToIdArgs()
if err != nil {
return err