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

Shardchain validation without monitoring shardchains

This commit is contained in:
SpyCheese 2022-07-18 18:35:06 +03:00
parent bdfca7afef
commit 996c23e506
22 changed files with 210 additions and 88 deletions

View file

@ -251,8 +251,15 @@ class OverlayImpl : public Overlay {
}
private:
bool subscribed() const {
return (bool)callback_;
}
template <class T>
void process_query(adnl::AdnlNodeIdShort src, T &query, td::Promise<td::BufferSlice> promise) {
if (!subscribed()) {
return;
}
callback_->receive_query(src, overlay_id_, serialize_tl_object(&query, true), std::move(promise));
}