From c30a9a7565d23a78cb05d3148a87bbb74091f46f Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 4 Oct 2018 14:46:05 +1000 Subject: [PATCH] Update comment for rejecting future block As per Danny's request --- beacon_chain/validation/src/block_validation.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beacon_chain/validation/src/block_validation.rs b/beacon_chain/validation/src/block_validation.rs index 6b11da801..c256d656c 100644 --- a/beacon_chain/validation/src/block_validation.rs +++ b/beacon_chain/validation/src/block_validation.rs @@ -119,7 +119,10 @@ impl BlockValidationContext } /* - * If the block slot corresponds to a slot in the future, drop it. + * If the block slot corresponds to a slot in the future, return immediately with an error. + * + * It is up to the calling fn to determine what should be done with "future" blocks (e.g., + * cache or discard). */ let block_slot = b.slot_number(); if block_slot > self.present_slot {