28 lines
631 B
C++
28 lines
631 B
C++
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <fc/crypto/sha256.hpp>
|
|
#include <graphene/chain/protocol/types.hpp>
|
|
#include <graphene/chain/genesis_state.hpp>
|
|
|
|
namespace graphene { namespace egenesis {
|
|
|
|
/**
|
|
* Get the chain ID of the built-in egenesis, or chain_id_type()
|
|
* if none was compiled in.
|
|
*/
|
|
graphene::chain::chain_id_type get_egenesis_chain_id();
|
|
|
|
/**
|
|
* Get the egenesis JSON, or the empty string if none was compiled in.
|
|
*/
|
|
void compute_egenesis_json( std::string& result );
|
|
|
|
/**
|
|
* The file returned by compute_egenesis_json() should have this hash.
|
|
*/
|
|
fc::sha256 get_egenesis_json_hash();
|
|
|
|
} } // graphene::egenesis
|