initialize genesis block

pull/460/head
wowario 1 year ago
parent 4b72cee6b7
commit 1f959585c4
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -820,7 +820,7 @@ void BlockchainLMDB::add_block(const block& blk, size_t block_weight, uint64_t l
bi.bi_diff_lo = (cumulative_difficulty & 0xffffffffffffffff).convert_to<uint64_t>();
bi.bi_hash = blk_hash;
bi.bi_cum_rct = num_rct_outs;
if (blk.major_version >= 4)
if (m_height > 0 && blk.major_version >= 4)
{
uint64_t last_height = m_height-1;
MDB_val_set(h, last_height);

Loading…
Cancel
Save