Skip to content

Commit

Permalink
new constant
Browse files Browse the repository at this point in the history
for future block times
  • Loading branch information
justinvforvendetta committed Feb 23, 2021
1 parent 907c15d commit 2e7bdae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2e7bdae

Please sign in to comment.