Function ValidatorSet.getValidators

Get all the validators able to sign block at height

ValidatorInfo[] getValidators (
  in const(Height) height
) @trusted;

The validators are returned sorted by UTXO (the normal sorting order). The list does not include validators for which the enrollment was accepted at height height, unless they were already enrolled before (as those will only be able to sign height + 1).

Parameters

NameDescription
height the block height for which we want the active validators

Returns

A structure containing all infos about current validators

Throws

If there is an internal error.