Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang authored Oct 9, 2022
1 parent 4141acd commit f7b9006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/phactory/src/prpc_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ impl<Platform: pal::Platform + Serialize + DeserializeOwned> Phactory<Platform>
);

if *runtime_state.chain_storage.root() != genesis.block_header.state_root {
warn!("Genesis chain storage state root: {:?}, Genesis block header state root: {:?}",
error!("Genesis state root mismatch, required in header: {:?}, actual: {:?}",
genesis.block_header.state_root,
runtime_state.chain_storage.root(),
genesis.block_header.state_root
);
return Err(from_display(
"state root hash not equal",
"state root mismatch",
));
}

Expand Down

0 comments on commit f7b9006

Please sign in to comment.