Initialize hash when using egenesis
This commit is contained in:
parent
73150e3c71
commit
3706c88a0b
1 changed files with 1 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ namespace detail {
|
|||
graphene::egenesis::compute_egenesis_json( egenesis_json );
|
||||
FC_ASSERT( egenesis_json != "" );
|
||||
FC_ASSERT( graphene::egenesis::get_egenesis_json_hash() == fc::sha256::hash( egenesis_json ) );
|
||||
genesis.initial_chain_id = fc::sha256::hash( egenesis_json );
|
||||
return fc::json::from_string( egenesis_json ).as<genesis_state_type>();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue