diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 18:56:36 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 18:56:36 +0800 |
commit | 585aec127cb231d91998b33564b2294659f56ac1 (patch) | |
tree | 276e75b594429920c7385512173af8be5df70c39 /rpc | |
parent | edfd2757d9d958dca936fe38efe350cf60b2c3ce (diff) | |
download | dexon-585aec127cb231d91998b33564b2294659f56ac1.tar dexon-585aec127cb231d91998b33564b2294659f56ac1.tar.gz dexon-585aec127cb231d91998b33564b2294659f56ac1.tar.bz2 dexon-585aec127cb231d91998b33564b2294659f56ac1.tar.lz dexon-585aec127cb231d91998b33564b2294659f56ac1.tar.xz dexon-585aec127cb231d91998b33564b2294659f56ac1.tar.zst dexon-585aec127cb231d91998b33564b2294659f56ac1.zip |
Don't ignore user-specified "include tx" param
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go index 660bb3251..940b80758 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -179,7 +179,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } block := api.xeth().EthBlockByHash(args.BlockHash) - br := NewBlockRes(block, true) + br := NewBlockRes(block, args.IncludeTxs) *reply = br case "eth_getBlockByNumber": @@ -189,7 +189,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } block := api.xeth().EthBlockByNumber(args.BlockNumber) - br := NewBlockRes(block, true) + br := NewBlockRes(block, args.IncludeTxs) *reply = br case "eth_getTransactionByHash": |