#include <chain_spec_impl.hpp>
|
outcome::result< void > | loadFromJson (const std::string &file_path) |
|
outcome::result< void > | loadFields (const boost::property_tree::ptree &tree) |
|
outcome::result< void > | loadGenesis (const boost::property_tree::ptree &tree) |
|
outcome::result< void > | loadBootNodes (const boost::property_tree::ptree &tree) |
|
template<typename T > |
outcome::result< std::decay_t< T > > | ensure (std::string_view entry_name, boost::optional< T > opt_entry) |
|
outcome::result< primitives::BlockId > | parseBlockId (const std::string_view block_id_str) const |
|
| ChainSpecImpl ()=default |
|
Definition at line 18 of file chain_spec_impl.hpp.
Enumerator |
---|
MISSING_ENTRY |
|
MISSING_PEER_ID |
|
PARSER_ERROR |
|
NOT_IMPLEMENTED |
|
Definition at line 20 of file chain_spec_impl.hpp.
kagome::application::ChainSpecImpl::~ChainSpecImpl |
( |
| ) |
|
|
overridedefault |
kagome::application::ChainSpecImpl::ChainSpecImpl |
( |
| ) |
|
|
privatedefault |
const std::vector<libp2p::multi::Multiaddress>& kagome::application::ChainSpecImpl::bootNodes |
( |
| ) |
const |
|
inlineoverridevirtual |
const std::string& kagome::application::ChainSpecImpl::chainType |
( |
| ) |
const |
|
inlineoverridevirtual |
std::optional<std::string> kagome::application::ChainSpecImpl::consensusEngine |
( |
| ) |
const |
|
inlineoverridevirtual |
template<typename T >
outcome::result<std::decay_t<T> > kagome::application::ChainSpecImpl::ensure |
( |
std::string_view |
entry_name, |
|
|
boost::optional< T > |
opt_entry |
|
) |
| |
|
inlineprivate |
Fetches code_substitute from json config on demand, by its BlockInfo. BlockInfo is being compared with BlockIds that were loaded on initial configuration and stored in set.
Implements kagome::application::ChainSpec.
Definition at line 197 of file chain_spec_impl.cpp.
const GenesisRawData& kagome::application::ChainSpecImpl::getGenesisTopSection |
( |
| ) |
const |
|
inlineoverridevirtual |
std::optional<std::reference_wrapper<const std::string> > kagome::application::ChainSpecImpl::getProperty |
( |
const std::string & |
property | ) |
const |
|
inlineoverridevirtual |
const std::string& kagome::application::ChainSpecImpl::id |
( |
| ) |
const |
|
inlineoverridevirtual |
outcome::result< void > kagome::application::ChainSpecImpl::loadBootNodes |
( |
const boost::property_tree::ptree & |
tree | ) |
|
|
private |
outcome::result< void > kagome::application::ChainSpecImpl::loadFields |
( |
const boost::property_tree::ptree & |
tree | ) |
|
|
private |
outcome::result< std::shared_ptr< ChainSpecImpl > > kagome::application::ChainSpecImpl::loadFrom |
( |
const std::string & |
config_path | ) |
|
|
static |
outcome::result< void > kagome::application::ChainSpecImpl::loadFromJson |
( |
const std::string & |
file_path | ) |
|
|
private |
outcome::result< void > kagome::application::ChainSpecImpl::loadGenesis |
( |
const boost::property_tree::ptree & |
tree | ) |
|
|
private |
const std::string& kagome::application::ChainSpecImpl::name |
( |
| ) |
const |
|
inlineoverridevirtual |
outcome::result< primitives::BlockId > kagome::application::ChainSpecImpl::parseBlockId |
( |
const std::string_view |
block_id_str | ) |
const |
|
private |
const std::map<std::string, std::string>& kagome::application::ChainSpecImpl::properties |
( |
| ) |
const |
|
inlineoverridevirtual |
const std::string& kagome::application::ChainSpecImpl::protocolId |
( |
| ) |
const |
|
inlineoverridevirtual |
const std::vector<std::pair<std::string, size_t> >& kagome::application::ChainSpecImpl::telemetryEndpoints |
( |
| ) |
const |
|
inlineoverridevirtual |
std::vector<libp2p::multi::Multiaddress> kagome::application::ChainSpecImpl::boot_nodes_ |
|
private |
std::string kagome::application::ChainSpecImpl::chain_type_ |
|
private |
std::string kagome::application::ChainSpecImpl::config_path_ |
|
private |
std::optional<std::string> kagome::application::ChainSpecImpl::consensus_engine_ |
|
private |
std::string kagome::application::ChainSpecImpl::id_ |
|
private |
std::string kagome::application::ChainSpecImpl::name_ |
|
private |
std::map<std::string, std::string> kagome::application::ChainSpecImpl::properties_ |
|
private |
std::string kagome::application::ChainSpecImpl::protocol_id_ {"sup"} |
|
private |
std::vector<std::pair<std::string, size_t> > kagome::application::ChainSpecImpl::telemetry_endpoints_ |
|
private |
The documentation for this class was generated from the following files: