Skip to content

Commit

Permalink
revert wrong genesis for now
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Jan 17, 2025
1 parent 9ddc351 commit 5ebaff8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,14 @@ void Node::reset()
history_log.clear();
contract_cache.clear();

// check for correct genesis
// TODO: remove this again
if(auto block = get_block_at(0)) {
if(block->hash.to_string() != "40248913714C8EEF21EB87708EE6DE4D1343F1A684EE9BD11BCE36BD7253D2A4") {
db->revert(0);
}
}

uint32_t height = 0;
if(height_map.find_last(height, state_hash))
{
Expand Down

0 comments on commit 5ebaff8

Please sign in to comment.