-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Define 7200 second timestamp window constant #9908
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
Conversation
src/chain.h
Outdated
* to block timestamps. This should be set at least as high as | ||
* MAX_FUTURE_BLOCK_TIME. | ||
*/ | ||
static const int64_t TIMESTAMP_WINDOW = MAX_FUTURE_BLOCK_TIME; |
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.
Isn't this a wallet constant?
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.
Isn't this a wallet constant?
No, it's also used by the pruneblockchain RPC (#9778).
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.
OK
utACK 3b8d451 |
src/chain.h
Outdated
|
||
/** | ||
* Timestamp window used as a grace period by code that compares external | ||
* timestamps (such as timestamps passed to RPCS, or wallet key creation times) |
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.
RPCs?
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.
Sure, changed in de41344
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.
Squashed de41344 -> e57a1fd (pr/timewin.1 -> pr/timewin.2)
src/chain.h
Outdated
|
||
/** | ||
* Timestamp window used as a grace period by code that compares external | ||
* timestamps (such as timestamps passed to RPCS, or wallet key creation times) |
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.
Sure, changed in de41344
ACK e57a1fd |
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky) Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
* Maximum amount of time that a block timestamp is allowed to exceed the | ||
* current network-adjusted time before the block will be accepted. | ||
*/ | ||
static const int64_t MAX_FUTURE_BLOCK_TIME = 2 * 60 * 60; |
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.
This one belongs in consensus/consensus.h
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.
This one belongs in consensus/consensus.h
I don't have an opinion, but when I discussed this with @morcos a while ago, I think he suggested it shouldn't go there because it isn't a constant that needs to be exactly the same everywhere to have consensus.
Until Bitcoin bitcoin#9908 gets backported
Until Bitcoin bitcoin#9908 gets backported
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky) Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky) Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky) Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
Until Bitcoin bitcoin#9908 gets backported
No description provided.