set genesis block timestamp

This commit is contained in:
wowario 2023-01-31 10:18:10 +03:00
parent b895d04401
commit 35b1f07d86
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 2 additions and 2 deletions

View File

@ -367,9 +367,9 @@ bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline
uint64_t top_block_timestamp = m_db->get_top_block_timestamp();
uint64_t timestamp_diff = time(NULL) - top_block_timestamp;
// genesis block has no timestamp, could probably change it to have timestamp of 1397818133...
// genesis block has no timestamp, could probably change it to have timestamp of 1522624244 (2018-04-01 23:10:44, block 1)...
if(!top_block_timestamp)
timestamp_diff = time(NULL) - 1397818133;
timestamp_diff = time(NULL) - 1522624244;
// create general purpose async service queue