Refactor block_processing

- Add the rayon library for parallelization
- Move from std::sync::Rwlock to rayon::RwLock
- Add `state` field to BeaconChain
- Fix major bug in attestation validator where justified slot was
incorrectly looked up.
This commit is contained in:
Paul Hauner
2019-02-01 14:48:09 +11:00
parent b6b738e83a
commit 20e45b3369
20 changed files with 236 additions and 309 deletions

View File

@@ -24,7 +24,7 @@ fn it_can_build_on_genesis_block() {
fn it_can_produce_past_first_epoch_boundary() {
Builder::from_env(Env::default().default_filter_or("debug")).init();
let validator_count = 100;
let validator_count = 128 * 1024;
debug!("Starting harness build...");