From 2e7bdae009a281e742db0e9754958122ad77495f Mon Sep 17 00:00:00 2001 From: justinvforvendetta Date: Tue, 23 Feb 2021 12:09:26 -0500 Subject: [PATCH] new constant for future block times --- src/chain.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chain.h b/src/chain.h index 497028119..0dc0f86ef 100644 --- a/src/chain.h +++ b/src/chain.h @@ -46,11 +46,14 @@ inline int CalculateAvgBlockTimeForHeight(int nHeight){ * Maximum amount of time that a block timestamp is allowed to exceed the * current network-adjusted time before the block will be accepted. */ -static const int64_t MAX_FUTURE_BLOCK_TIME = 10 * 60; +static const int64_t MAX_FUTURE_BLOCK_TIME = 2 * 60 * 60; +static const int64_t NEW_FUTURE_BLOCK_TIME = 10 * 60; inline int64_t GetMaxClockDrift(int Height){ if (Height < 2218500) return MAX_FUTURE_BLOCK_TIME; + if (Height > 4800000) + return NEW_FUTURE_BLOCK_TIME; return 10 * 60; }