Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease effectiveness of timewarp attack #45

Merged
merged 8 commits into from
Jun 15, 2018
Merged

Conversation

egyptianbman
Copy link
Member

@egyptianbman egyptianbman commented Jun 14, 2018

This decreases the window of time that a block's timestamp can be in the future from two hours to 30 minutes. I think 30 minutes is still too much -- we can probably get away with 15 minutes but we'll take it one step at a time.

@egyptianbman egyptianbman self-assigned this Jun 14, 2018
@egyptianbman
Copy link
Member Author

Unfortunately, there doesn't seem to be any interest in fixing this bug.

@egyptianbman egyptianbman deleted the feature/patch-timewarp branch June 14, 2018 21:41
@NickRHill NickRHill restored the feature/patch-timewarp branch June 15, 2018 20:28
@egyptianbman egyptianbman reopened this Jun 15, 2018
src/main.cpp Outdated
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");

// starting at height 158750, decrease to 30 minute window to decrease effectiveness of timewarp attack.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change comment to 159,300

@@ -61,6 +61,7 @@ class CMainParams : public CChainParams {
nDefaultPort = 1989;
nMaxTipAge = 24 * 60 * 60;
nPruneAfterHeight = 100000;
newTimeRule = 158750;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs 159,300

cryptorex
cryptorex previously approved these changes Jun 15, 2018
Copy link
Member

@cryptorex cryptorex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship ship!

@@ -19,7 +19,7 @@
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs bump to 4?

Copy link
Contributor

@NickRHill NickRHill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve

@NickRHill NickRHill merged commit 0b774f3 into master Jun 15, 2018
@egyptianbman egyptianbman deleted the feature/patch-timewarp branch June 15, 2018 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants