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:
parent
4ec34edc0c
commit
5ce9d0bcdb
4 changed files with 12 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue