Update comment for rejecting future block

As per Danny's request
This commit is contained in:
Paul Hauner 2018-10-04 14:46:05 +10:00
parent 49737fbc82
commit c30a9a7565
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -119,7 +119,10 @@ impl<T> BlockValidationContext<T>
}
/*
* 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 {