initialize genesis block

dev-v0.11.2
wowario 1 year ago
parent 7af83ced4c
commit 3271844ab5
Signed by: wowario
GPG Key ID: 793504B449C69220

@ -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