From d2e741423057c483522f5eaa1daece72aab2ee43 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 19 Mar 2015 23:07:25 -0400 Subject: inline FilterChanged --- rpc/api.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpc/api.go b/rpc/api.go index 39137d8db..d6e9dc1b1 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -98,11 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State { // return nil // } -func (self *EthereumApi) FilterChanged(id int, reply *interface{}) error { - *reply = NewLogsRes(self.xeth().FilterChanged(id)) - return nil -} - func (self *EthereumApi) Logs(id int, reply *interface{}) error { *reply = NewLogsRes(self.xeth().Logs(id)) @@ -493,7 +488,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error if err := json.Unmarshal(req.Params, &args); err != nil { return err } - return p.FilterChanged(args.Id, reply) + *reply = NewLogsRes(p.xeth().FilterChanged(args.Id)) case "eth_getFilterLogs": args := new(FilterIdArgs) if err := json.Unmarshal(req.Params, &args); err != nil { -- cgit v1.2.3