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

This commit is contained in:
Taylor Gerring 2015-04-02 12:56:36 +02:00
parent edfd2757d9
commit 585aec127c

View File

@ -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
} }
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":