From 2e860d04cf2ffb18126536ac79496df9fbbd449f Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Wed, 30 Nov 2016 16:26:04 -0800 Subject: [PATCH] Clarifying comment for rejection of blocks too far in future. --- chain/src/pipe.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chain/src/pipe.rs b/chain/src/pipe.rs index 897c73225..0d03af02f 100644 --- a/chain/src/pipe.rs +++ b/chain/src/pipe.rs @@ -108,8 +108,7 @@ fn validate_header(b: &Block, ctx: &mut BlockContext) -> Result<(), Error> { } if header.timestamp > time::now() + time::Duration::seconds(12 * (consensus::BLOCK_TIME_SEC as i64)) { - // refuse blocks too far in future, constant of 12 comes from bitcoin (2h worth - // of blocks) + // refuse blocks more than 12 blocks intervals in future (as in bitcoin) // TODO add warning in p2p code if local time is too different from peers return Err(Error::InvalidBlockTime); }