Skip to content
Permalink
Browse files

change drift from 2 hours to 15 mins

  • Loading branch information...
justinvforvendetta committed Apr 4, 2018
1 parent 8ade426 commit 7294e062a61f78ffb05689b562f90985463d1179
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.h
@@ -56,7 +56,7 @@ static const int fHaveUPnP = false;
static const uint256 hashGenesisBlockOfficial("0x00000fc63692467faeb20cdb3b53200dc601d75bdfa1001463304cc790d77278");
static const uint256 hashGenesisBlockTestNet("0x65b4e101cacf3e1e4f3a9237e3a74ffd1186e595d8b78fa8ea22c21ef5bf9347");

static const int64 nMaxClockDrift = 2 * 60 * 60; // two hours
static const int64 nMaxClockDrift = 2 * 15; // fifteen minutes

This comment has been minimized.

Copy link
@jahson

jahson Apr 4, 2018

2 * 60 * 60 = two hours
2 * 15 = 30 seconds
@justinvforvendetta


extern CScript COINBASE_FLAGS;

9 comments on commit 7294e06

@ymotton

This comment has been minimized.

Copy link

replied Apr 4, 2018

@justinvforvendetta Assuming the previous comment was correct, and the interpretation of the const hasn't changed, shouldn't it be 15 * 60 or // thirty seconds

Also, I fail to see how this is a good solution for the issue.

@aboussof

This comment has been minimized.

Copy link

replied Apr 4, 2018

@justinvforvendetta this is not 15 minutes! that mus be 15 * 60 = 900 Seconds = 15 minutes

@mjarraya

This comment has been minimized.

Copy link

replied Apr 4, 2018

Please, pinch me

@IfaqYurmama

This comment has been minimized.

Copy link

replied Apr 4, 2018

lmfao

@justinvforvendetta

This comment has been minimized.

@ymotton

This comment has been minimized.

Copy link

replied Apr 4, 2018

Not sure I follow @justinvforvendetta nMaxClockDrift is in seconds, no?

@aboussof

This comment has been minimized.

Copy link

replied Apr 4, 2018

2 * 60 * 60 = 7200 Seconds / 60 seconds = 120 minutes = 2 hours
15 * 60 = 900 Seconds / 60 seconds = 15 minutes

so is correct

@justinvforvendetta

This comment has been minimized.

Copy link
Member Author

replied Apr 4, 2018

a few of us discussed this and 2 * 15 * 15 will make the window a bit shorter.

@justinvforvendetta

This comment has been minimized.

Copy link
Member Author

replied Apr 4, 2018

30 seconds may not work, since average block time is 30 seconds, but it has been known to vary by 15 seconds.

Please sign in to comment.
You can’t perform that action at this time.