Commit 585aec12 authored by Taylor Gerring's avatar Taylor Gerring

Don't ignore user-specified "include tx" param

parent edfd2757
...@@ -179,7 +179,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err ...@@ -179,7 +179,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
} }
block := api.xeth().EthBlockByHash(args.BlockHash) block := api.xeth().EthBlockByHash(args.BlockHash)
br := NewBlockRes(block, true) br := NewBlockRes(block, args.IncludeTxs)
*reply = br *reply = br
case "eth_getBlockByNumber": case "eth_getBlockByNumber":
...@@ -189,7 +189,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err ...@@ -189,7 +189,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
} }
block := api.xeth().EthBlockByNumber(args.BlockNumber) block := api.xeth().EthBlockByNumber(args.BlockNumber)
br := NewBlockRes(block, true) br := NewBlockRes(block, args.IncludeTxs)
*reply = br *reply = br
case "eth_getTransactionByHash": case "eth_getTransactionByHash":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment