Skip to content

Commit 663e8d1

Browse files
committed
Fix time settings.
1 parent 0f1509c commit 663e8d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static constexpr int64_t TIMESTAMP_WINDOW = MAX_FUTURE_BLOCK_TIME;
3636
*
3737
* Ref: https://github.com/bitcoin/bitcoin/pull/1026
3838
*/
39-
static constexpr int64_t MAX_BLOCK_TIME_GAP = 50 * 3; // = MAX_FUTURE_BLOCK_TIME / 2
39+
static constexpr int64_t MAX_BLOCK_TIME_GAP = 60 * 12; // Block time * 12
4040

4141
class CBlockFileInfo
4242
{

src/timedata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <stdint.h>
1111
#include <vector>
1212

13-
static const int64_t DEFAULT_MAX_TIME_ADJUSTMENT = 60 * 12; // Block time * 12
13+
static const int64_t DEFAULT_MAX_TIME_ADJUSTMENT = 50 * 3; // ~MAX_FUTURE_BLOCK_TIME / 2
1414

1515
class CNetAddr;
1616

0 commit comments

Comments
 (0)