mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Merge branch 'testnet' into accelerator
This commit is contained in:
commit
e6aac0b143
30 changed files with 426 additions and 11 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "rldp/rldp.h"
|
||||
#include "token-manager.h"
|
||||
#include "queue-size-counter.hpp"
|
||||
#include "validator-telemetry.hpp"
|
||||
#include "impl/candidates-buffer.hpp"
|
||||
#include "collator-node.hpp"
|
||||
|
||||
|
@ -359,6 +360,7 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
}
|
||||
void add_temp_key(PublicKeyHash key, td::Promise<td::Unit> promise) override {
|
||||
temp_keys_.insert(key);
|
||||
init_validator_telemetry();
|
||||
promise.set_value(td::Unit());
|
||||
}
|
||||
void del_permanent_key(PublicKeyHash key, td::Promise<td::Unit> promise) override {
|
||||
|
@ -367,6 +369,7 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
}
|
||||
void del_temp_key(PublicKeyHash key, td::Promise<td::Unit> promise) override {
|
||||
temp_keys_.erase(key);
|
||||
init_validator_telemetry();
|
||||
promise.set_value(td::Unit());
|
||||
}
|
||||
|
||||
|
@ -524,6 +527,7 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
void send_ihr_message(td::Ref<IhrMessage> message) override;
|
||||
void send_top_shard_block_description(td::Ref<ShardTopBlockDescription> desc) override;
|
||||
void send_block_broadcast(BlockBroadcast broadcast, int mode) override;
|
||||
void send_validator_telemetry(PublicKeyHash key, tl_object_ptr<ton_api::validator_telemetry> telemetry) override;
|
||||
void send_get_out_msg_queue_proof_request(ShardIdFull dst_shard, std::vector<BlockIdExt> blocks,
|
||||
block::ImportedMsgQueueLimits limits,
|
||||
td::Promise<std::vector<td::Ref<OutMsgQueueProof>>> promise) override;
|
||||
|
@ -784,6 +788,10 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
void record_validate_query_stats(BlockIdExt block_id, double work_time, double cpu_work_time) override;
|
||||
RecordedBlockStats &new_block_stats_record(BlockIdExt block_id);
|
||||
|
||||
std::map<PublicKeyHash, td::actor::ActorOwn<ValidatorTelemetry>> validator_telemetry_;
|
||||
|
||||
void init_validator_telemetry();
|
||||
|
||||
struct Collator {
|
||||
td::actor::ActorOwn<CollatorNode> actor;
|
||||
std::set<ShardIdFull> shards;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue