openethereum/rpc/src/v1/helpers
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
..
accounts.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
block_import.rs rpc: fix is_major_importing sync state condition (#9112) 2018-07-23 15:42:08 +02:00
dispatch.rs Comply EIP-86 with the new definition (#9140) 2018-08-01 13:17:04 +02:00
errors.rs Implement EIP234 block_hash for eth_getLogs (#9256) 2018-08-13 15:47:10 +08:00
fake_sign.rs Remove all dapp permissions related settings (#9120) 2018-08-07 20:52:23 +08:00
ipfs.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
light_fetch.rs Comply EIP-86 with the new definition (#9140) 2018-08-01 13:17:04 +02:00
mod.rs Completely remove all dapps struct from rpc (#9107) 2018-07-16 13:42:59 +02:00
network_settings.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
nonce.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
oneshot.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
poll_filter.rs Implement EIP234 block_hash for eth_getLogs (#9256) 2018-08-13 15:47:10 +08:00
poll_manager.rs Allow Poll Lifetime to be configured via CLI (#8885) 2018-06-18 13:42:54 +02:00
requests.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
secretstore.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
signer.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
signing_queue.rs Remove all dapp permissions related settings (#9120) 2018-08-07 20:52:23 +08:00
subscribers.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
subscription_manager.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00