mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Rework validator-collator interaction
1) Remove config 41, move "full collated data" to capabilities 2) Whitelist on collator nodes 3) "Ping" request for collator nodes 4) More customizable collators list for validators 5) CollationManager
This commit is contained in:
parent
7d2110c8b0
commit
b3bea413e3
34 changed files with 1204 additions and 319 deletions
|
@ -1536,6 +1536,9 @@ bool ValidateQuery::request_neighbor_queues() {
|
|||
auto neighbor_list = new_shard_conf_->get_neighbor_shard_hash_ids(shard_);
|
||||
LOG(DEBUG) << "got a preliminary list of " << neighbor_list.size() << " neighbors for " << shard_.to_str();
|
||||
for (ton::BlockId blk_id : neighbor_list) {
|
||||
if (blk_id.seqno == 0 && blk_id.shard_full() != shard_) {
|
||||
continue;
|
||||
}
|
||||
auto shard_ptr = new_shard_conf_->get_shard_hash(ton::ShardIdFull(blk_id));
|
||||
if (shard_ptr.is_null()) {
|
||||
return reject_query("cannot obtain shard hash for neighbor "s + blk_id.to_str());
|
||||
|
@ -2305,6 +2308,12 @@ bool ValidateQuery::prepare_out_msg_queue_size() {
|
|||
have_out_msg_queue_size_in_state_ = true;
|
||||
return true;
|
||||
}
|
||||
if (ps_.out_msg_queue_->is_empty()) {
|
||||
old_out_msg_queue_size_ = 0;
|
||||
out_msg_queue_size_known_ = true;
|
||||
have_out_msg_queue_size_in_state_ = true;
|
||||
return true;
|
||||
}
|
||||
if (!store_out_msg_queue_size_) { // Don't need it
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue