Fix build
This commit is contained in:
parent
e410df78c0
commit
5dbe57c3ff
2 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ endif()
|
||||||
list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
|
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
|
||||||
|
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/genesis.json" )
|
||||||
|
|
||||||
#set (ENABLE_INSTALLER 1)
|
#set (ENABLE_INSTALLER 1)
|
||||||
#set (USE_PCH 1)
|
#set (USE_PCH 1)
|
||||||
|
|
|
||||||
|
|
@ -317,8 +317,9 @@ namespace detail {
|
||||||
graphene::egenesis::compute_egenesis_json( egenesis_json );
|
graphene::egenesis::compute_egenesis_json( egenesis_json );
|
||||||
FC_ASSERT( egenesis_json != "" );
|
FC_ASSERT( egenesis_json != "" );
|
||||||
FC_ASSERT( graphene::egenesis::get_egenesis_json_hash() == fc::sha256::hash( egenesis_json ) );
|
FC_ASSERT( graphene::egenesis::get_egenesis_json_hash() == fc::sha256::hash( egenesis_json ) );
|
||||||
|
auto genesis = fc::json::from_string( egenesis_json ).as<genesis_state_type>();
|
||||||
genesis.initial_chain_id = 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>();
|
return genesis;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue