#include "application.hpp"

Public Types | |
| using | RunResult = iroha::expected::Result< void, std::string > |
Public Member Functions | |
| Irohad (const boost::optional< std::string > &block_store_dir, std::unique_ptr< iroha::ametsuchi::PostgresOptions > pg_opt, const std::string &listen_ip, size_t torii_port, size_t internal_port, size_t max_proposal_size, std::chrono::milliseconds proposal_delay, std::chrono::milliseconds vote_delay, std::chrono::minutes mst_expiration_time, const shared_model::crypto::Keypair &keypair, std::chrono::milliseconds max_rounds_delay, size_t stale_stream_max_rounds, boost::optional< shared_model::interface::types::PeerList > opt_alternative_peers, logger::LoggerManagerTreePtr logger_manager, iroha::StartupWsvDataPolicy startup_wsv_data_policy, const boost::optional< iroha::GossipPropagationStrategyParams > &opt_mst_gossip_params=boost::none, const boost::optional< iroha::torii::TlsParams > &torii_tls_params=boost::none, 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 | |
| shared_model::crypto::Keypair | keypair |
| 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 boost::optional< std::string > & | block_store_dir, |
| std::unique_ptr< iroha::ametsuchi::PostgresOptions > | pg_opt, | ||
| const std::string & | listen_ip, | ||
| size_t | torii_port, | ||
| size_t | internal_port, | ||
| size_t | max_proposal_size, | ||
| std::chrono::milliseconds | proposal_delay, | ||
| std::chrono::milliseconds | vote_delay, | ||
| std::chrono::minutes | mst_expiration_time, | ||
| const shared_model::crypto::Keypair & | keypair, | ||
| std::chrono::milliseconds | max_rounds_delay, | ||
| size_t | stale_stream_max_rounds, | ||
| boost::optional< shared_model::interface::types::PeerList > | opt_alternative_peers, | ||
| logger::LoggerManagerTreePtr | logger_manager, | ||
| iroha::StartupWsvDataPolicy | startup_wsv_data_policy, | ||
| const boost::optional< iroha::GossipPropagationStrategyParams > & | opt_mst_gossip_params = boost::none, |
||
| const boost::optional< iroha::torii::TlsParams > & | torii_tls_params = boost::none, |
||
| boost::optional< IrohadConfig::InterPeerTls > | inter_peer_tls_config = boost::none |
||
| ) |
Constructor that initializes common iroha pipeline
| block_store_dir | - folder where blocks will be stored |
| pg_opt | - connection options for PostgresSQL |
| listen_ip | - ip address for opening ports (internal & torii) |
| torii_port | - port for torii binding |
| internal_port | - port for internal communication - ordering service, consensus, and block loader |
| max_proposal_size | - maximum transactions that possible appears in one proposal |
| proposal_delay | - maximum waiting time util emitting new proposal |
| vote_delay | - waiting time before sending vote to next peer |
| mst_expiration_time | - maximum time until until MST transaction is not considered as expired (in minutes) |
| keypair | - public and private keys for crypto signer |
| max_rounds_delay | - maximum delay between consecutive rounds without transactions |
| stale_stream_max_rounds | - maximum number of rounds between consecutive status emissions |
| opt_alternative_peers | - optional alternative initial peers list |
| logger_manager | - the logger manager to use |
| startup_wsv_data_policy | - |
| opt_mst_gossip_params | - parameters for Gossip MST propagation (optional). If not provided, disables mst processing support |
| torii_tls_params | - optional TLS params for torii. |
| 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


|
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 |
| shared_model::crypto::Keypair Irohad::keypair |
|
protected |
|
protected |
|
protected |
log for local messages
|
protected |
application root log manager
|
protected |
|
protected |
|
protected |
|
protected |
|
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 |
|
protected |
| std::shared_ptr<iroha::ametsuchi::Storage> Irohad::storage |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |