Skip to content

Commit b4fcb34

Browse files
committed
Bump MAX_FUTURE_BLOCK_TIME to 30s
1 parent b9ff613 commit b4fcb34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/chain.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
* A miner stamps the block at template creation, then spends an arbitrary amount
2323
* of time factoring (eg. 180s, which is extremely fast for mainnet diff). Normally by the time the solution is broadcast,
2424
* the timestamp, determined before factoring starts, is far in the past.
25-
* Assuming monotonic timestamp, the only failure mode is a miner whose local clock is so far ahead (eg. 185s ahead)
25+
* Assuming monotonic timestamp, the only failure mode is a miner whose local clock is so far ahead (eg. 211s ahead)
2626
* that template creation timestamp is still in the future by the time peer receives the mined block,
27-
* or if a normal node falls 185s behind.
27+
* or if a normal node falls 211s behind.
2828
*/
29-
static constexpr int64_t MAX_FUTURE_BLOCK_TIME = 4;
29+
static constexpr int64_t MAX_FUTURE_BLOCK_TIME = 30;
3030

3131
/**
3232
* Timestamp window used as a grace period by code that compares external

test/functional/p2p_invalid_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from test_framework.test_framework import BitcoinTestFramework
2222
from test_framework.util import assert_equal
2323

24-
MAX_FUTURE_BLOCK_TIME = 4
24+
MAX_FUTURE_BLOCK_TIME = 30
2525

2626

2727
class InvalidBlockRequestTest(BitcoinTestFramework):

0 commit comments

Comments
 (0)