mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-15 07:39:08 +00:00
Don't ignore user-specified "include tx" param
This commit is contained in:
parent
edfd2757d9
commit
585aec127c
1 changed files with 2 additions and 2 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue