openethereum/ethcore
Wei Tang a6df452841
Implement EIP234 block_hash for eth_getLogs (#9256)
* Implement EIP234

* Make filter conversion returns error if both blockHash and from/toBlock is found

This also changes PollFilter to store the EthFilter type, instead of the jsonrpc one, saving repeated conversion.

* Return error if block filtering target is not found in eth_getLogs

Use the old behavior (unwrap_or_default) for anywhere else.

* fix test: secret_store

* Fix weird indentation

* Make client log filter return error in case a block cannot be found

* Return blockId error in rpc

* test_client: allow return error on logs

* Add a mocked test for eth_getLogs error

* fix: should return error if from_block/to_block greater than best block number

* Add notes on pending

* Add comment for UNSUPPORTED_REQUEST

* Address grumbles

* Return err if from > to
2018-08-13 15:47:10 +08:00
..
benches ethcore: add builtin benchmarks based on geth (#9179) 2018-07-23 15:46:24 +02:00
evm Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
light Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
node_filter Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
private-tx Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
res Update tobalaba.json (#9313) 2018-08-09 23:14:45 +02:00
service Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
src Implement EIP234 block_hash for eth_getLogs (#9256) 2018-08-13 15:47:10 +08:00
stratum Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
sync ethcore/sync Make view macro only visible to test (#9316) 2018-08-10 14:31:48 +02:00
transaction deserialize block only once during verification (#9161) 2018-07-25 14:36:46 +02:00
types docs: update repository links (#9159) 2018-07-23 13:58:50 +02:00
vm Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
wasm Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00
Cargo.toml Update log -> 0.4, env_logger -> 0.5. (#9294) 2018-08-10 00:04:10 +01:00