Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: qdrvm/kagome
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f6a11fecbf0fd52a5c2c9146611c158de1515f3d
Choose a base ref
..
head repository: qdrvm/kagome
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8e06a565fe2a3cfc33af31d779fddc8a64ba2784
Choose a head ref
Showing with 8 additions and 8 deletions.
  1. +8 −8 core/parachain/validator/statement_distribution/statement_distribution.cpp
Original file line number Diff line number Diff line change
@@ -221,14 +221,14 @@ namespace kagome::parachain::statement_distribution {
void StatementDistribution::on_peer_connected(
const libp2p::peer::PeerId &peer) {
BOOST_ASSERT(main_pool_handler->isInCurrentThread());
if (auto my_view = peer_view->getMyView()) {
auto message = std::make_shared<
network::WireMessage<network::vstaging::ValidatorProtocolMessage>>(
network::ViewUpdate{
.view = my_view->get().view
});
network_bridge->send_to_peer(peer, router->getValidationProtocolVStaging(), message);
}
// if (auto my_view = peer_view->getMyView()) {
// auto message = std::make_shared<
// network::WireMessage<network::vstaging::ValidatorProtocolMessage>>(
// network::ViewUpdate{
// .view = my_view->get().view
// });
// network_bridge->send_to_peer(peer, router->getValidationProtocolVStaging(), message);
// }
on_peer_connected_internal(peer);
}