#include "application.hpp"

Public Types | |
| using | RunResult = iroha::expected::Result< void, std::string > |
Public Member Functions | |
| Irohad (const IrohadConfig &config, std::unique_ptr< iroha::ametsuchi::PostgresOptions > pg_opt, const std::string &listen_ip, const boost::optional< shared_model::crypto::Keypair > &keypair, logger::LoggerManagerTreePtr logger_manager, iroha::StartupWsvDataPolicy startup_wsv_data_policy, iroha::StartupWsvSynchronizationPolicy startup_wsv_sync_policy, std::shared_ptr< const iroha::network::GrpcChannelParams > grpc_channel_params, const boost::optional< iroha::GossipPropagationStrategyParams > &opt_mst_gossip_params, boost::optional< IrohadConfig::InterPeerTls > inter_peer_tls_config=boost::none) | |
| virtual RunResult | init () |
| RunResult | restoreWsv () |
| RunResult | validateKeypair () |
| virtual RunResult | dropStorage () |
| RunResult | resetWsv () |
| RunResult | run () |
| virtual | ~Irohad () |
Public Attributes | |
| std::unique_ptr< iroha::ametsuchi::PostgresOptions > | pg_opt_ |
| std::shared_ptr< iroha::ametsuchi::Storage > | storage |
| using Irohad::RunResult = iroha::expected::Result<void, std::string> |
| Irohad::Irohad | ( | const IrohadConfig & | config, |
| std::unique_ptr< iroha::ametsuchi::PostgresOptions > | pg_opt, | ||
| const std::string & | listen_ip, | ||
| const boost::optional< shared_model::crypto::Keypair > & | keypair, | ||
| logger::LoggerManagerTreePtr | logger_manager, | ||
| iroha::StartupWsvDataPolicy | startup_wsv_data_policy, | ||
| iroha::StartupWsvSynchronizationPolicy | startup_wsv_sync_policy, | ||
| std::shared_ptr< const iroha::network::GrpcChannelParams > | grpc_channel_params, | ||
| const boost::optional< iroha::GossipPropagationStrategyParams > & | opt_mst_gossip_params, | ||
| boost::optional< IrohadConfig::InterPeerTls > | inter_peer_tls_config = boost::none |
||
| ) |
Constructor that initializes common iroha pipeline
| pg_opt | - connection options for PostgresSQL |
| listen_ip | - ip address for opening ports (internal & torii) not considered as expired (in minutes) |
| keypair | - public and private keys for crypto signer |
| logger_manager | - the logger manager to use |
| startup_wsv_data_policy | - |
| grpc_channel_params | - parameters for all grpc clients |
| opt_mst_gossip_params | - parameters for Gossip MST propagation (optional). If not provided, disables mst processing support |
| inter_peer_tls_config | - set up TLS in peer-to-peer communication TODO mboldyrev 03.11.2018 IR-1844 Refactor the constructor. |
Configuring iroha daemon

|
virtual |
|
virtual |
Drop wsv and block store

|
virtual |
Initialization of whole objects in system
Initializing iroha daemon

|
protectedvirtual |

|
protectedvirtual |
Initializing block loader


|
protected |
Initializing channel pool.

|
protectedvirtual |
Initializing consensus block cache

|
protectedvirtual |
Initializing consensus gate

|
protectedvirtual |
Initializing crypto provider

|
protectedvirtual |

|
protectedvirtual |

|
protectedvirtual |
Initializing network client

|
protectedvirtual |
Initializing ordering gate


|
protected |
Initializing peers' certificates provider.

|
protectedvirtual |
Initializing peer communication service

|
protectedvirtual |

|
protectedvirtual |

|
protectedvirtual |
Initializing persistent cache

|
protectedvirtual |
Initializing query command service

|
protectedvirtual |
Initializing setting query

|
protectedvirtual |
Initializing iroha verified proposal creator and block creator

|
protectedvirtual |

|
protectedvirtual |
Initializing iroha daemon storage


|
protectedvirtual |
Initializing synchronizer

|
protected |
Initializing own TLS credentials.

|
protectedvirtual |
Initializing transaction command service

|
protectedvirtual |
Initializing validators


|
protectedvirtual |
Initializing validators' configs

|
protectedvirtual |
Initialize WSV restorer

| Irohad::RunResult Irohad::resetWsv | ( | ) |


| Irohad::RunResult Irohad::restoreWsv | ( | ) |
Restore World State View

| Irohad::RunResult Irohad::run | ( | ) |
Run worker threads for start performing
Run iroha daemon
| Irohad::RunResult Irohad::validateKeypair | ( | ) |
Check that the provided keypair is present in the ledger

|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
log for local messages
|
protected |
application root log manager
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| std::unique_ptr<iroha::ametsuchi::PostgresOptions> Irohad::pg_opt_ |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| std::shared_ptr<iroha::ametsuchi::Storage> Irohad::storage |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |