Skip to content

Commit

Permalink
[genesis] Only check genesis state_root when server start (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar authored Aug 6, 2024
1 parent ad9551a commit 988f617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rooch-genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl RoochGenesis {
if let Some(builtin_id) = network.chain_id.to_builtin() {
let genesis_from_binary = Self::load(builtin_id)?;
let genesis_info_from_binary = genesis_from_binary.genesis_info();
if genesis_info_from_store != genesis_info_from_binary {
if genesis_info_from_store.root != genesis_info_from_binary.root {
return Err(GenesisError::GenesisVersionMismatch {
from_store: Box::new(genesis_info_from_store),
from_binary: Box::new(genesis_info_from_binary),
Expand Down

0 comments on commit 988f617

Please sign in to comment.