hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
synchronizer_common.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SYNCHRONIZER_COMMON_HPP
7 #define IROHA_SYNCHRONIZER_COMMON_HPP
8 
9 #include <utility>
10 
11 #include <rxcpp/rx.hpp>
12 
14 #include "consensus/round.hpp"
16 
17 namespace iroha {
18  namespace synchronizer {
19 
25  using Chain =
26  rxcpp::observable<std::shared_ptr<shared_model::interface::Block>>;
27 
33 
39  // TODO andrei 08.11.2018 IR-1852 Rework blocks collection from
40  // synchronizer with iterable
44  std::shared_ptr<iroha::LedgerState> ledger_state;
45  };
46 
47  } // namespace synchronizer
48 } // namespace iroha
49 
50 #endif // IROHA_SYNCHRONIZER_COMMON_HPP
SynchronizationOutcomeType
Definition: synchronizer_common.hpp:32
std::shared_ptr< iroha::LedgerState > ledger_state
Definition: synchronizer_common.hpp:44
rxcpp::observable< std::shared_ptr< shared_model::interface::Block >> Chain
Definition: synchronizer_common.hpp:26
Chain synced_blocks
Definition: synchronizer_common.hpp:41
Definition: block_query.hpp:16
SynchronizationOutcomeType sync_outcome
Definition: synchronizer_common.hpp:42
Definition: round.hpp:31
Definition: synchronizer_common.hpp:38
consensus::Round round
Definition: synchronizer_common.hpp:43