mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
More logs for collators and validators
This commit is contained in:
parent
3265e397f2
commit
aa4f5769ca
7 changed files with 33 additions and 17 deletions
|
@ -233,11 +233,13 @@ void CollatorNode::receive_query(adnl::AdnlNodeIdShort src, td::BufferSlice data
|
|||
cache_entry = cache_[cache_key] = std::make_shared<CacheEntry>();
|
||||
}
|
||||
if (cache_entry->result) {
|
||||
LOG(INFO) << "Using cached result";
|
||||
new_promise.set_result(cache_entry->result.value().clone());
|
||||
return;
|
||||
}
|
||||
cache_entry->promises.push_back(std::move(new_promise));
|
||||
if (cache_entry->started) {
|
||||
LOG(INFO) << "Collating of this block is already in progress, waiting";
|
||||
return;
|
||||
}
|
||||
cache_entry->started = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue