Interface BftQueryService
- All Superinterfaces:
BesuService, PoaQueryService
Allows for the BFT specific aspects of the block chain to be queried.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the literal name of the BFT consensus mechanism is use (eg ibft or qbft), which forms the prefix for all BFT metrics.intgetRoundNumberFrom(BlockHeader header) Extracts the round number from the supplied header and returns it to the caller.Collection<org.hyperledger.besu.datatypes.Address> getSignersFrom(BlockHeader header) Extracts the collection of signers from the supplied block header and returns them to the caller.Methods inherited from interface PoaQueryService
getLocalSignerAddress, getProposerOfBlock, getValidatorsForLatestBlock
-
Method Details
-
getRoundNumberFrom
Extracts the round number from the supplied header and returns it to the caller.- Parameters:
header- the block header from which the round number is to be extracted- Returns:
- The number of failed rounds executed prior to adding the block to the chain.
-
getSignersFrom
Extracts the collection of signers from the supplied block header and returns them to the caller.- Parameters:
header- the block header from which a list of signers is to be extracted- Returns:
- The addresses of
-
getConsensusMechanismName
String getConsensusMechanismName()Returns the literal name of the BFT consensus mechanism is use (eg ibft or qbft), which forms the prefix for all BFT metrics.- Returns:
- The name of the consensus mechanism being used by Besu
-