aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:07:25 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:07:25 +0800
commitd2e741423057c483522f5eaa1daece72aab2ee43 (patch)
treef8fbcc6dc9bd343c70e004044ad4fe83fa8f9864
parent3e9632e2566d9853e4c12ccd545e818df290219b (diff)
downloaddexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.gz
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.bz2
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.lz
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.xz
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.tar.zst
dexon-d2e741423057c483522f5eaa1daece72aab2ee43.zip
inline FilterChanged
-rw-r--r--rpc/api.go7
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 {