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

Add more information to validatorStats.newValidatorGroup.node

This commit is contained in:
SpyCheese 2024-12-27 15:23:31 +03:00
parent 4ec34edc0c
commit 5ce9d0bcdb
4 changed files with 12 additions and 6 deletions

View file

@ -213,6 +213,8 @@ struct ValidatorSessionStats {
struct NewValidatorGroupStats {
struct Node {
PublicKeyHash id = PublicKeyHash::zero();
PublicKey pubkey;
adnl::AdnlNodeIdShort adnl_id = adnl::AdnlNodeIdShort::zero();
ValidatorWeight weight = 0;
};
@ -228,8 +230,8 @@ struct NewValidatorGroupStats {
tl_object_ptr<ton_api::validatorStats_newValidatorGroup> tl() const {
std::vector<tl_object_ptr<ton_api::validatorStats_newValidatorGroup_node>> nodes_arr;
for (const auto &node : nodes) {
nodes_arr.push_back(
create_tl_object<ton_api::validatorStats_newValidatorGroup_node>(node.id.bits256_value(), node.weight));
nodes_arr.push_back(create_tl_object<ton_api::validatorStats_newValidatorGroup_node>(
node.id.bits256_value(), node.pubkey.tl(), node.adnl_id.bits256_value(), node.weight));
}
return create_tl_object<ton_api::validatorStats_newValidatorGroup>(session_id, create_tl_shard_id(shard), cc_seqno,
last_key_block_seqno, started_at, self_idx,