Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
block_announce_transmitter_impl.cpp
Go to the documentation of this file.
1
6
#include "
network/impl/block_announce_transmitter_impl.hpp
"
7
8
#include "
network/router.hpp
"
9
10
namespace
kagome::network
{
11
12
BlockAnnounceTransmitterImpl::BlockAnnounceTransmitterImpl
(
13
std::shared_ptr<network::Router> router)
14
: router_(
std
::move(router)) {}
15
16
void
BlockAnnounceTransmitterImpl::blockAnnounce
(
BlockAnnounce
&&message) {
17
auto
protocol =
router_
->getBlockAnnounceProtocol();
18
BOOST_ASSERT_MSG(protocol,
19
"Router did not provide block announce protocol"
);
20
protocol->blockAnnounce(std::move(message));
21
}
22
}
// namespace kagome::network
std
STL namespace.
kagome::network::BlockAnnounceTransmitterImpl::router_
std::shared_ptr< Router > router_
Definition:
block_announce_transmitter_impl.hpp:21
kagome::network::BlockAnnounceTransmitterImpl::blockAnnounce
void blockAnnounce(BlockAnnounce &&announce) override
Definition:
block_announce_transmitter_impl.cpp:16
block_announce_transmitter_impl.hpp
kagome::network
Definition:
author_api_impl.hpp:37
router.hpp
kagome::network::BlockAnnounceTransmitterImpl::BlockAnnounceTransmitterImpl
BlockAnnounceTransmitterImpl(std::shared_ptr< Router > router)
Definition:
block_announce_transmitter_impl.cpp:12
kagome::network::BlockAnnounce
Definition:
block_announce.hpp:16
core
network
impl
block_announce_transmitter_impl.cpp
Generated by
1.8.11