From 7c88f94377f9cc3949651281287972bf6b27cb92 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 29 Sep 2018 12:32:33 +0930 Subject: [PATCH] Tidy comments in block validation --- lighthouse/state/block/validation/validate_ssz_block.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lighthouse/state/block/validation/validate_ssz_block.rs b/lighthouse/state/block/validation/validate_ssz_block.rs index 1067798db..524ce07ba 100644 --- a/lighthouse/state/block/validation/validate_ssz_block.rs +++ b/lighthouse/state/block/validation/validate_ssz_block.rs @@ -175,7 +175,9 @@ pub fn validate_ssz_block(b: &SszBlock, /* * Verify each other AttestationRecord. * - * TODO: make this parallelized. + * Note: this uses the `rayon` library to do "sometimes" parallelization. Put simply, + * if there's some spare threads the verification of attestation records will happen + * concurrently. */ let failure: Option = None; let failure = RwLock::new(failure); @@ -224,7 +226,6 @@ pub fn validate_ssz_block(b: &SszBlock, } } - // TODO: handle validation failure. Presently, it will just pass everything /* * If we have reached this point, the block is a new valid block that is worthy of