-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conversation
Unfortunately, there doesn't seem to be any interest in fixing this bug. |
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. |
There was a problem hiding this comment.
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
src/chainparams.cpp
Outdated
@@ -61,6 +61,7 @@ class CMainParams : public CChainParams { | |||
nDefaultPort = 1989; | |||
nMaxTipAge = 24 * 60 * 60; | |||
nPruneAfterHeight = 100000; | |||
newTimeRule = 158750; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs 159,300
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ship ship!
src/clientversion.h
Outdated
@@ -19,7 +19,7 @@ | |||
#define CLIENT_VERSION_MAJOR 1 | |||
#define CLIENT_VERSION_MINOR 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs bump to 4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve
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.