openethereum/ethcore
Vladyslav Lupashevskyi 7b2afdfc8c Implement caching for service transactions checker (#10088)
* Tx permission contract improvement

* Take in account zero gas price certification when doing transact_contract

* DRY in ServiceTransactionChecker

* Fix typos and regroup mod

* Introduce CertifiedAddressesCache

* Introduce refresh_cache for CertifiedAddressesCache

* Add CertifiedAddressesCache read and write on checking

* Refresh CertifiedAddressesCache on new imported block

* Separate ChainInfo trait and fix errors after merge

* Do not fire an error when service txes contract does not exist

* WIP: Shared certified addresses cache between miner and client + use HashMap instead of BTreeMap

* Refactor refresh_cache for ServiceTransactionChecker

* Refresh cache fixes

* Add cache read in check_address + log when cache is used + improve code

* Remove ChainInfo from ServiceTransaction dependencies

* DRY ServiceTransactionChecker

* Fix Client and Miner in tests

* Fix node_filter test

* Fix Client::new in add_peer_with_private_config

* WIP: Separated ChainNotify from ethcore trait and implemented ChainNotify for ServiceTransactionChecker

* Fix watcher test

* Revert "Merge branch 'master' into master"

This reverts commit 4e7371dc109d022efe3087defc33d827998ce648, reversing
changes made to bffd73e5fd58a516bbf404281b51cf26422e181e.

* Revert "Fix watcher test"

This reverts commit bffd73e5fd58a516bbf404281b51cf26422e181e.

* Revert "WIP: Separated ChainNotify from ethcore trait and implemented ChainNotify for ServiceTransactionChecker"

This reverts commit 6e73d1e61fa15dc10ffd4fab63df29eabe9c3b3a.

* Revert "Fix Client::new in add_peer_with_private_config"

This reverts commit ec610a30bee95588d58b79edcc9e43c2ff90f1ad.

* Revert "Fix node_filter test"

This reverts commit 06a4b2de86317c902f579e912b40de0b0fbf6d78.

* Revert "Fix Client and Miner in tests"

This reverts commit 51bbad330ea6e7bdfc1516208cc8705d5d11516d.

* Implement ServiceTransactionChecker in miner and delegate it to client + revert unnecessary changes

* Merge master

* Code improvements

* Merge branch 'master' of https://github.com/paritytech/parity-ethereum

# Conflicts:
#	Cargo.lock
#	ethcore/private-tx/src/lib.rs
#	ethcore/src/miner/miner.rs
#	ethcore/src/miner/pool_client.rs
2019-03-31 10:39:38 +02:00
..
benches misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
blockchain Adds cli interface to allow reseting chain to a particular block (#9782) 2019-01-16 16:37:26 +01:00
call-contract Extract CallContract and RegistryInfo traits into their own crate (#10178) 2019-01-16 19:52:21 +01:00
db misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
evm Additional error for invalid gas (#10327) 2019-02-11 22:20:51 +00:00
light fix(light): make OnDemand generic instead of using the concrete type (#10514) 2019-03-27 14:46:20 +01:00
node-filter Remove caching for node connections (#10143) 2019-01-08 11:31:26 +11:00
private-tx Implement caching for service transactions checker (#10088) 2019-03-31 10:39:38 +02:00
res ethcore: remove eth social and easthub chain configs (#10531) 2019-03-27 15:07:38 +01:00
service private-tx: replace error_chain (#10510) 2019-03-27 14:46:05 +01:00
src Implement caching for service transactions checker (#10088) 2019-03-31 10:39:38 +02:00
sync Update to latest mem-db, hash-db and trie-db. (#10314) 2019-02-20 21:09:34 +03:00
types simplify parity machine (#10469) 2019-03-13 11:36:13 +01:00
vm Update to latest mem-db, hash-db and trie-db. (#10314) 2019-02-20 21:09:34 +03:00
wasm Replace ethcore-logger with env-logger. (#10102) 2019-01-08 15:07:20 +01:00
Cargo.toml ethcore: add clique engine (#9981) 2019-03-27 14:13:24 +01:00