MCPcopy Create free account
hub / github.com/CPChain/chain / GetValidators

Method GetValidators

consensus/dpor/api.go:60–62  ·  view source on GitHub ↗

GetValidators retrieves the Validators at a given block.

(number rpc.BlockNumber)

Source from the content-addressed store, hash-verified

58
59// GetValidators retrieves the Validators at a given block.
60func (api *API) GetValidators(number rpc.BlockNumber) ([]common.Address, error) {
61 return api.dpor.ValidatorsOf(uint64(number))
62}
63
64// GetRNodes retrieves current RNodes.
65func (api *API) GetRNodes() ([]common.Address, error) {

Callers 1

ValidatorsMethod · 0.80

Calls 1

ValidatorsOfMethod · 0.65

Tested by

no test coverage detected