Merge pull request #170 from wowario/genesis

blockchain: fix default genesis block timestamp #5092
This commit is contained in:
jw
2019-02-07 04:27:42 -08:00
committed by GitHub

View File

@@ -392,9 +392,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 1341378000...
// 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) - 1341378000;
timestamp_diff = time(NULL) - 1522624244;
// create general purpose async service queue