diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 17:14:52 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 17:14:52 +0800 |
commit | c7dc379da5a02fb8ac92788fa317379fbde00d20 (patch) | |
tree | d24ca050c0292cc8923af84da0ac236f4989fddb /rpc/args.go | |
parent | 7e1e264375fe4bebbf6bb40604d0060744ebae2a (diff) | |
download | dexon-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.go | 4 |
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) |