aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 17:14:52 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 17:14:52 +0800
commitc7dc379da5a02fb8ac92788fa317379fbde00d20 (patch)
treed24ca050c0292cc8923af84da0ac236f4989fddb /rpc/api.go
parent7e1e264375fe4bebbf6bb40604d0060744ebae2a (diff)
downloaddexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.gz
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.zst
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.zip
GetBlockByHashArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/api.go b/rpc/api.go
index aa5b54199..8d1a412d1 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -245,7 +245,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
- block := api.xeth().EthBlockByHash(args.Hash)
+ block := api.xeth().EthBlockByHexstring(args.Hash)
br := NewBlockRes(block)
br.fullTx = true
@@ -273,14 +273,14 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
- br := NewBlockRes(api.xeth().EthBlockByHash(args.Hash))
+ br := NewBlockRes(api.xeth().EthBlockByHexstring(args.Hash))
if args.Index > int64(len(br.Uncles)) || args.Index < 0 {
return NewValidationError("Index", "does not exist")
}
uhash := br.Uncles[args.Index].Hex()
- uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash))
+ uncle := NewBlockRes(api.xeth().EthBlockByHexstring(uhash))
*reply = uncle
case "eth_getUncleByBlockNumberAndIndex":
@@ -298,7 +298,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
}
uhash := v.Uncles[args.Index].Hex()
- uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash))
+ uncle := NewBlockRes(api.xeth().EthBlockByHexstring(uhash))
*reply = uncle
case "eth_getCompilers":