Final name changes
This commit is contained in:
parent
90ceb5218c
commit
0d8d51084f
17
rpc/api.go
17
rpc/api.go
@ -571,7 +571,8 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
|||||||
return p.Call(args, reply)
|
return p.Call(args, reply)
|
||||||
case "eth_flush":
|
case "eth_flush":
|
||||||
return errNotImplemented
|
return errNotImplemented
|
||||||
case "eth_getBlockByNumber", "eth_getBlockByHash":
|
case "eth_getBlockByNumber":
|
||||||
|
case "eth_getBlockByHash":
|
||||||
// TODO handle second param for "include transaction objects"
|
// TODO handle second param for "include transaction objects"
|
||||||
args, err := req.ToGetBlockArgs()
|
args, err := req.ToGetBlockArgs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -601,12 +602,12 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return p.NewFilter(args, reply)
|
return p.NewFilter(args, reply)
|
||||||
// case "eth_newFilterString":
|
case "eth_newBlockFilter":
|
||||||
// args, err := req.ToFilterStringArgs()
|
args, err := req.ToFilterStringArgs()
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// return err
|
return err
|
||||||
// }
|
}
|
||||||
// return p.NewFilterString(args, reply)
|
return p.NewFilterString(args, reply)
|
||||||
case "eth_newBlockFilter":
|
case "eth_newBlockFilter":
|
||||||
return errNotImplemented
|
return errNotImplemented
|
||||||
case "eth_uninstallFilter":
|
case "eth_uninstallFilter":
|
||||||
@ -691,7 +692,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
|||||||
return p.NewWhisperFilter(args, reply)
|
return p.NewWhisperFilter(args, reply)
|
||||||
case "shh_uninstallFilter":
|
case "shh_uninstallFilter":
|
||||||
return errNotImplemented
|
return errNotImplemented
|
||||||
case "shh_changed":
|
case "shh_getFilterChanges":
|
||||||
args, err := req.ToIdArgs()
|
args, err := req.ToIdArgs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user