Skip to content

Conversation

ryanofsky
Copy link
Contributor

No description provided.

@fanquake fanquake added the Tests label Mar 3, 2017
@maflcko maflcko changed the title Define 7200 second timestamp window constant tests: Define 7200 second timestamp window constant Mar 3, 2017
@maflcko maflcko changed the title tests: Define 7200 second timestamp window constant Define 7200 second timestamp window constant Mar 3, 2017
@maflcko maflcko added Refactoring and removed Tests labels Mar 3, 2017
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;
Copy link
Member

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?

Copy link
Contributor Author

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).

Copy link
Member

Choose a reason for hiding this comment

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

OK

@laanwj
Copy link
Member

laanwj commented Mar 3, 2017

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

RPCs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, changed in de41344

Copy link
Contributor Author

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

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

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, changed in de41344

@paveljanik
Copy link
Contributor

ACK e57a1fd

@laanwj laanwj merged commit e57a1fd into bitcoin:master Mar 6, 2017
laanwj added a commit that referenced this pull request Mar 6, 2017
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;
Copy link
Contributor

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

Copy link
Contributor Author

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.

codablock added a commit to codablock/dash that referenced this pull request Jan 26, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 21, 2019
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky)

Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Jan 21, 2019
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 25, 2019
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky)

Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Jan 25, 2019
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 25, 2019
e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky)

Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Jan 25, 2019
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants