aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 18:56:36 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 18:56:36 +0800
commit585aec127cb231d91998b33564b2294659f56ac1 (patch)
tree276e75b594429920c7385512173af8be5df70c39 /rpc
parentedfd2757d9d958dca936fe38efe350cf60b2c3ce (diff)
downloadgo-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar.gz
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar.bz2
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar.lz
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar.xz
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.tar.zst
go-tangerine-585aec127cb231d91998b33564b2294659f56ac1.zip
Don't ignore user-specified "include tx" param
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go4
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":