hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
round_switch.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ROUND_SWITCH_HPP
7 #define IROHA_ROUND_SWITCH_HPP
8 
9 #include <memory>
10 
11 #include "consensus/round.hpp"
12 
13 namespace iroha {
14  struct LedgerState;
15 }
16 
17 namespace iroha::ordering {
18  struct RoundSwitch {
20  std::shared_ptr<const LedgerState> ledger_state;
21 
23  std::shared_ptr<const LedgerState> ledger_state)
24  : next_round(std::move(next_round)),
25  ledger_state(std::move(ledger_state)) {}
26  };
27 } // namespace iroha::ordering
28 
29 #endif // IROHA_ROUND_SWITCH_HPP
Definition: application.hpp:65
Definition: round_switch.hpp:18
RoundSwitch(consensus::Round next_round, std::shared_ptr< const LedgerState > ledger_state)
Definition: round_switch.hpp:22
Definition: round.cpp:51
Definition: block_query.hpp:15
consensus::Round next_round
Definition: round_switch.hpp:19
std::shared_ptr< const LedgerState > ledger_state
Definition: round_switch.hpp:20
Definition: round.hpp:31