openethereum/ethcore/src/verification
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
..
queue ethcore/VerificationQueue don't spawn up extra worker-threads when explictly specified not to (#9620) 2018-09-26 15:11:50 +01:00
canon_verifier.rs Update license header and scripts (#8666) 2018-06-04 10:19:50 +02:00
mod.rs deserialize block only once during verification (#9161) 2018-07-25 14:36:46 +02:00
noop_verifier.rs Update license header and scripts (#8666) 2018-06-04 10:19:50 +02:00
verification.rs ethcore: don't validate difficulty when ignoring seal check (#9470) 2018-09-06 04:37:41 +02:00
verifier.rs Update license header and scripts (#8666) 2018-06-04 10:19:50 +02:00