mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Various changes in node (#1230)
* Remove unneeded "wait_neighbours_not_empty" * Fix "round_started_at" for the first round * Fix use after move in overlay.cpp * Move "last gc masterchain state" stat to CellDbIn::prepare_stats * Fix disabling state serializer
This commit is contained in:
parent
b78199370e
commit
6755b8314a
10 changed files with 20 additions and 91 deletions
|
@ -633,14 +633,9 @@ std::vector<adnl::AdnlNodeIdShort> OverlayImpl::get_neighbours(td::uint32 max_si
|
|||
}
|
||||
|
||||
void OverlayImpl::send_message_to_neighbours(td::BufferSlice data) {
|
||||
wait_neighbours_not_empty([this, data = std::move(data)](td::Result<td::Unit> R) {
|
||||
if (R.is_error()) {
|
||||
return;
|
||||
}
|
||||
for (auto &n : peer_list_.neighbours_) {
|
||||
td::actor::send_closure(manager_, &OverlayManager::send_message, n, local_id_, overlay_id_, data.clone());
|
||||
}
|
||||
});
|
||||
for (auto &n : peer_list_.neighbours_) {
|
||||
td::actor::send_closure(manager_, &OverlayManager::send_message, n, local_id_, overlay_id_, data.clone());
|
||||
}
|
||||
}
|
||||
|
||||
size_t OverlayImpl::neighbours_cnt() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue