openethereum/ethcore
Niklas Adolfsson 3216b143c2 ethcore/VerificationQueue don't spawn up extra worker-threads when explictly specified not to (#9620)
* VerificationQueue don't spawn up extra threads

In the verification queue we spawn up worker threads to do the work.
However, if `num-verifiers` is specified we still spawn the maximum
number of threads which consume extra memory.

There is one catch though when `--scale-verifiers` is specified then
we can't do it because all threads are created upon initilization AFAIK.

In my opinion, is doesn't to use both `num-verifiers` and
`scale-verifiers` they are kind of contradictory!

* Fix nits in logic and add tests for verification

* refactor(verification queue) - rm hardcoded const

* Address grumbles in new tests
* Remove hardcoded `MAX_VERIFIERS` constant and replace it by relying
entirely on `num_cpu` crate instead inorder to support CPUs that have
more cores/logical cores
2018-09-26 15:11:50 +01:00
..
benches ethcore: add builtin benchmarks based on geth (#9179) 2018-07-23 15:46:24 +02:00
evm Fix informant compile (#9571) 2018-09-17 16:16:49 +02:00
light RPC: parity_getBlockReceipts (#9527) 2018-09-25 18:06:14 +01:00
node_filter new ethabi (#9511) 2018-09-13 11:04:39 +02:00
private-tx new ethabi (#9511) 2018-09-13 11:04:39 +02:00
res HF in POA Sokol (2018-09-19) (#9607) 2018-09-25 12:25:55 +02:00
service Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
src ethcore/VerificationQueue don't spawn up extra worker-threads when explictly specified not to (#9620) 2018-09-26 15:11:50 +01:00
stratum Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
sync RPC: parity_getBlockReceipts (#9527) 2018-09-25 18:06:14 +01:00
transaction Update state tests execution model (#9440) 2018-09-10 22:38:30 +02:00
types Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
vm Update patricia trie to 0.2.2 (#9525) 2018-09-11 16:20:26 +02:00
wasm EIP 1283: Net gas metering for SSTORE without dirty maps (#9319) 2018-09-07 18:51:08 +08:00
Cargo.toml Add constantinople conf to EvmTestClient. (#9570) 2018-09-25 12:24:40 +02:00