mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix setting bad_peers_ in overlay
This commit is contained in:
parent
a14490637a
commit
15099f2664
1 changed files with 4 additions and 6 deletions
|
@ -255,7 +255,6 @@ void OverlayImpl::on_ping_result(adnl::AdnlNodeIdShort peer, bool success) {
|
|||
}
|
||||
if (OverlayPeer *p = peer_list_.peers_.get(peer)) {
|
||||
p->on_ping_result(success);
|
||||
if (!p->is_permanent_member()) {
|
||||
if (p->is_alive()) {
|
||||
peer_list_.bad_peers_.erase(peer);
|
||||
} else {
|
||||
|
@ -263,7 +262,6 @@ void OverlayImpl::on_ping_result(adnl::AdnlNodeIdShort peer, bool success) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayImpl::receive_random_peers(adnl::AdnlNodeIdShort src, td::Result<td::BufferSlice> R) {
|
||||
CHECK(overlay_type_ != OverlayType::FixedMemberList);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue