Kagome
Polkadot Runtime Engine in C++17
block_announce_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  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
STL namespace.