Kagome
Polkadot Runtime Engine in C++17
transactions_transmitter_impl.cpp
Go to the documentation of this file.
1 
7 
8 #include "network/router.hpp"
9 
10 namespace kagome::network {
11 
13  std::shared_ptr<network::Router> router)
14  : router_(std::move(router)) {}
15 
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
STL namespace.
void propagateTransactions(gsl::span< const primitives::Transaction > txs) override
TransactionsTransmitterImpl(std::shared_ptr< Router > router)