mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-07 21:28:40 +02:00
Define 7200 second timestamp window constant
This commit is contained in:
14
src/chain.h
14
src/chain.h
@@ -14,6 +14,20 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Timestamp window used as a grace period by code that compares external
|
||||
* timestamps (such as timestamps passed to RPCs, or wallet key creation times)
|
||||
* 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;
|
||||
|
||||
class CBlockFileInfo
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user