Interface PoAMetricsService
-
public interface PoAMetricsService
Provides relevant data for producing metrics on the status of a Proof of Authority (PoA) node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Address
getProposerOfBlock(BlockHeader header)
Retrieves theAddress
for the proposer of a block on the canonical chain.java.util.Collection<Address>
getValidatorsForLatestBlock()
Retrieves the validators who have signed the latest block from the canonical chain.
-
-
-
Method Detail
-
getValidatorsForLatestBlock
java.util.Collection<Address> getValidatorsForLatestBlock()
Retrieves the validators who have signed the latest block from the canonical chain.- Returns:
- Identities of the validators who formed quorum on the latest block.
-
getProposerOfBlock
Address getProposerOfBlock(BlockHeader header)
Retrieves theAddress
for the proposer of a block on the canonical chain.- Parameters:
header
- TheBlockHeader
for which the proposer will be found.- Returns:
- The identity of the proposer for the given block.
-
-