GetBlockByHashArgs

This commit is contained in:
Taylor Gerring
2015-03-26 10:14:52 +01:00
parent 7e1e264375
commit c7dc379da5
4 changed files with 12 additions and 9 deletions

View File

@ -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)