diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:07:25 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:07:25 +0800 |
commit | d2e741423057c483522f5eaa1daece72aab2ee43 (patch) | |
tree | f8fbcc6dc9bd343c70e004044ad4fe83fa8f9864 /rpc | |
parent | 3e9632e2566d9853e4c12ccd545e818df290219b (diff) | |
download | dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.gz dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.zst dexon-d2e741423057c483522f5eaa1daece72aab2ee43.zip |
inline FilterChanged
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 7 |
1 files changed, 1 insertions, 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 { |