mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add getvalidatorsessions query to validator-engine-console
This commit is contained in:
parent
9465fd866a
commit
849d995346
21 changed files with 181 additions and 4 deletions
|
@ -79,6 +79,11 @@ td::uint32 ValidatorSessionDescriptionImpl::get_max_priority() const {
|
|||
return opts_.round_candidates - 1;
|
||||
}
|
||||
|
||||
td::uint32 ValidatorSessionDescriptionImpl::get_node_by_priority(td::uint32 round, td::uint32 priority) const {
|
||||
CHECK(priority <= get_max_priority());
|
||||
return (round + priority) % get_total_nodes();
|
||||
}
|
||||
|
||||
ValidatorSessionCandidateId ValidatorSessionDescriptionImpl::candidate_id(
|
||||
td::uint32 src_idx, ValidatorSessionRootHash root_hash, ValidatorSessionFileHash file_hash,
|
||||
ValidatorSessionCollatedDataFileHash collated_data_file_hash) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue