1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Remove unused priority_broadcast_receivers

This commit is contained in:
SpyCheese 2024-02-19 14:21:15 +03:00
parent 747b24aa18
commit e575d27302
17 changed files with 16 additions and 124 deletions

View file

@ -68,11 +68,7 @@ td::Status BroadcastSimple::run_checks() {
td::Status BroadcastSimple::distribute() {
auto B = serialize();
auto nodes = overlay_->get_neighbours(5);
if (is_ours_) {
auto priority_nodes = overlay_->get_priority_broadcast_receivers(3);
nodes.insert(nodes.end(), priority_nodes.begin(), priority_nodes.end());
}
auto nodes = overlay_->get_neighbours(3);
auto manager = overlay_->overlay_manager();
for (auto &n : nodes) {
@ -144,7 +140,7 @@ td::Status BroadcastSimple::create_new(td::actor::ActorId<OverlayImpl> overlay,
auto date = static_cast<td::uint32>(td::Clocks::system());
auto B = std::make_unique<BroadcastSimple>(broadcast_hash, PublicKey{}, nullptr, flags, std::move(data), date,
td::BufferSlice{}, false, nullptr, adnl::AdnlNodeIdShort::zero(), true);
td::BufferSlice{}, false, nullptr, adnl::AdnlNodeIdShort::zero());
auto to_sign = B->to_sign();
auto P = td::PromiseCreator::lambda(