diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:20:54 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:20:54 +0800 |
commit | 6669ef5b701f8b060287c8a63e9f3c1116b4b74a (patch) | |
tree | a669e6e774aaacc5edc8ee93dc2be259d4a690e5 /rpc/args.go | |
parent | 7b45f3377f3f8d911d7678530138a1249f523155 (diff) | |
download | dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.gz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.bz2 dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.lz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.xz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.zst dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.zip |
Rename for clarity
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc/args.go b/rpc/args.go index bd6be5a0f..cbb199902 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -35,8 +35,8 @@ func blockAge(raw interface{}, number *int64) (err error) { } type GetBlockByHashArgs struct { - BlockHash string - Transactions bool + BlockHash string + IncludeTxs bool } func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) { @@ -57,15 +57,15 @@ func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) { args.BlockHash = argstr if len(obj) > 1 { - args.Transactions = obj[1].(bool) + args.IncludeTxs = obj[1].(bool) } return nil } type GetBlockByNumberArgs struct { - BlockNumber int64 - Transactions bool + BlockNumber int64 + IncludeTxs bool } func (args *GetBlockByNumberArgs) UnmarshalJSON(b []byte) (err error) { @@ -86,7 +86,7 @@ func (args *GetBlockByNumberArgs) UnmarshalJSON(b []byte) (err error) { } if len(obj) > 1 { - args.Transactions = obj[1].(bool) + args.IncludeTxs = obj[1].(bool) } return nil |