hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
gossip_propagation_strategy_params.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GOSSIP_PROPAGATION_STRATEGY_PARAMS_HPP
7 #define IROHA_GOSSIP_PROPAGATION_STRATEGY_PARAMS_HPP
8 
9 #include <chrono>
10 
11 #include <boost/optional.hpp>
12 
13 // TODO: IR-1317 @l4l (02/05/18) magics should be replaced with options via
14 // cli parameters
15 static constexpr std::chrono::milliseconds kDefaultPeriod =
16 std::chrono::seconds(5);
17 static constexpr uint32_t kDefaultAmount = 2;
18 
19 namespace iroha {
25  std::chrono::milliseconds emission_period{kDefaultPeriod};
26 
29  };
30 
31 } // namespace iroha
32 
33 #endif // IROHA_GOSSIP_PROPAGATION_STRATEGY_PARAMS_HPP
uint32_t amount_per_once
amount of data (peers) emitted per once
Definition: gossip_propagation_strategy_params.hpp:28
static constexpr std::chrono::milliseconds kDefaultPeriod
Definition: gossip_propagation_strategy_params.hpp:15
Definition: block_query.hpp:16
std::chrono::milliseconds emission_period
period of emitting data in ms
Definition: gossip_propagation_strategy_params.hpp:25
Definition: gossip_propagation_strategy_params.hpp:23
static constexpr uint32_t kDefaultAmount
Definition: gossip_propagation_strategy_params.hpp:17