aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:10:23 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:10:23 +0800
commit4b5e5926560df601e3055f3cfbf120ff2f4a49cc (patch)
tree6f9fc3559be90eaec59e60a10bf1c128b7c13a1f /rpc
parent0bda63eb76755574750112252457931719515a71 (diff)
downloadgo-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar.gz
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar.bz2
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar.lz
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar.xz
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.tar.zst
go-tangerine-4b5e5926560df601e3055f3cfbf120ff2f4a49cc.zip
inline AllLogs
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/rpc/api.go b/rpc/api.go
index a472229a4..ff2ae6c34 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -98,13 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State {
// return nil
// }
-func (self *EthereumApi) AllLogs(args *FilterOptions, reply *interface{}) error {
- opts := toFilterOptions(args)
- *reply = NewLogsRes(self.xeth().AllLogs(opts))
-
- return nil
-}
-
func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) (err error) {
// TODO if no_private_key then
//if _, exists := p.register[args.From]; exists {
@@ -494,7 +487,8 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- return p.AllLogs(args, reply)
+ opts := toFilterOptions(args)
+ *reply = NewLogsRes(p.xeth().AllLogs(opts))
case "eth_getWork", "eth_submitWork":
return NewNotImplementedError(req.Method)
case "db_putString":