Optimize pending transactions filter (#9026)
* rpc: return unordered transactions in pending transactions filter * ethcore: use LruCache for nonce cache Only clear the nonce cache when a block is retracted * Revert "ethcore: use LruCache for nonce cache" This reverts commit b382c19abdb9985be1724c3b8cde83906da07d68. * Use only cached nonces when computing pending hashes. * Give filters their own locks, so that they don't block one another. * Fix pending transaction count if not sealing. * Clear cache only when block is enacted. * Fix RPC tests. * Address review comments.
Showing
- ethcore/src/miner/miner.rs 43 additions, 6 deletionsethcore/src/miner/miner.rs
- ethcore/src/miner/mod.rs 7 additions, 1 deletionethcore/src/miner/mod.rs
- miner/src/pool/queue.rs 14 additions, 1 deletionminer/src/pool/queue.rs
- miner/src/pool/ready.rs 37 additions, 0 deletionsminer/src/pool/ready.rs
- rpc/src/v1/helpers/mod.rs 1 addition, 1 deletionrpc/src/v1/helpers/mod.rs
- rpc/src/v1/helpers/poll_filter.rs 25 additions, 3 deletionsrpc/src/v1/helpers/poll_filter.rs
- rpc/src/v1/impls/eth.rs 1 addition, 3 deletionsrpc/src/v1/impls/eth.rs
- rpc/src/v1/impls/eth_filter.rs 105 additions, 111 deletionsrpc/src/v1/impls/eth_filter.rs
- rpc/src/v1/impls/light/eth.rs 6 additions, 5 deletionsrpc/src/v1/impls/light/eth.rs
- rpc/src/v1/tests/helpers/miner_service.rs 5 additions, 1 deletionrpc/src/v1/tests/helpers/miner_service.rs
Please register or sign in to comment