aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.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/args.go
parent7e1e264375fe4bebbf6bb40604d0060744ebae2a (diff)
downloaddexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.gz
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.bz2
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.lz
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.xz
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.tar.zst
dexon-c7dc379da5a02fb8ac92788fa317379fbde00d20.zip
GetBlockByHashArgs
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 5b655024c..9a51959f4 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -35,7 +35,7 @@ func blockHeight(raw interface{}, number *int64) (err error) {
}
type GetBlockByHashArgs struct {
- BlockHash string
+ BlockHash common.Hash
IncludeTxs bool
}
@@ -54,7 +54,7 @@ func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) {
if !ok {
return NewDecodeParamError("BlockHash not a string")
}
- args.BlockHash = argstr
+ args.BlockHash = common.HexToHash(argstr)
if len(obj) > 1 {
args.IncludeTxs = obj[1].(bool)