aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:08:26 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:08:26 +0800
commit0bda63eb76755574750112252457931719515a71 (patch)
treefa562e75a8693be742a4187d1f08a5c4cf5f39cd /rpc
parentd2e741423057c483522f5eaa1daece72aab2ee43 (diff)
downloaddexon-0bda63eb76755574750112252457931719515a71.tar
dexon-0bda63eb76755574750112252457931719515a71.tar.gz
dexon-0bda63eb76755574750112252457931719515a71.tar.bz2
dexon-0bda63eb76755574750112252457931719515a71.tar.lz
dexon-0bda63eb76755574750112252457931719515a71.tar.xz
dexon-0bda63eb76755574750112252457931719515a71.tar.zst
dexon-0bda63eb76755574750112252457931719515a71.zip
inline Logs
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/rpc/api.go b/rpc/api.go
index d6e9dc1b1..a472229a4 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -98,12 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State {
// return nil
// }
-func (self *EthereumApi) Logs(id int, reply *interface{}) error {
- *reply = NewLogsRes(self.xeth().Logs(id))
-
- return nil
-}
-
func (self *EthereumApi) AllLogs(args *FilterOptions, reply *interface{}) error {
opts := toFilterOptions(args)
*reply = NewLogsRes(self.xeth().AllLogs(opts))
@@ -494,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.Logs(args.Id, reply)
+ *reply = NewLogsRes(p.xeth().Logs(args.Id))
case "eth_getLogs":
args := new(FilterOptions)
if err := json.Unmarshal(req.Params, &args); err != nil {