Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
transactions_transmitter_impl.cpp
Go to the documentation of this file.
1
6
#include "
network/impl/transactions_transmitter_impl.hpp
"
7
8
#include "
network/router.hpp
"
9
10
namespace
kagome::network
{
11
12
TransactionsTransmitterImpl::TransactionsTransmitterImpl
(
13
std::shared_ptr<network::Router> router)
14
: router_(
std
::move(router)) {}
15
16
void
TransactionsTransmitterImpl::propagateTransactions
(
17
gsl::span<const primitives::Transaction> txs) {
18
auto
protocol =
router_
->getPropagateTransactionsProtocol();
19
BOOST_ASSERT_MSG(protocol,
20
"Router did not provide propagate transactions protocol"
);
21
protocol->propagateTransactions(std::move(txs));
22
}
23
}
// namespace kagome::network
transactions_transmitter_impl.hpp
std
STL namespace.
kagome::network::TransactionsTransmitterImpl::propagateTransactions
void propagateTransactions(gsl::span< const primitives::Transaction > txs) override
Definition:
transactions_transmitter_impl.cpp:16
kagome::network::TransactionsTransmitterImpl::router_
std::shared_ptr< Router > router_
Definition:
transactions_transmitter_impl.hpp:22
kagome::network
Definition:
author_api_impl.hpp:37
router.hpp
kagome::network::TransactionsTransmitterImpl::TransactionsTransmitterImpl
TransactionsTransmitterImpl(std::shared_ptr< Router > router)
Definition:
transactions_transmitter_impl.cpp:12
core
network
impl
transactions_transmitter_impl.cpp
Generated by
1.8.11