miner: adjust clock to timewarp rule

This commit is contained in:
Sjors Provoost
2024-08-20 10:45:04 +02:00
parent e929054e12
commit 59ff17e5af
4 changed files with 24 additions and 15 deletions

View File

@@ -107,13 +107,6 @@ const std::vector<std::string> CHECKLEVEL_DOC {
* */
static constexpr int PRUNE_LOCK_BUFFER{10};
/**
* Maximum number of seconds that the timestamp of the first
* block of a difficulty adjustment period is allowed to
* be earlier than the last block of the previous period (BIP94).
*/
static constexpr int64_t MAX_TIMEWARP = 600;
GlobalMutex g_best_block_mutex;
std::condition_variable g_best_block_cv;
uint256 g_best_block;