Interface BftQueryService

All Superinterfaces:
org.hyperledger.besu.plugin.services.BesuService, PoaQueryService

@Deprecated(forRemoval=true) public interface BftQueryService extends PoaQueryService
Deprecated, for removal: This API element is subject to removal in a future version.
This service is scheduled for removal in a future release, with no replacement, as it has no known usage.
Allows for the BFT specific aspects of the block chain to be queried.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the literal name of the BFT consensus mechanism is use (eg ibft or qbft), which forms the prefix for all BFT metrics.
    int
    getRoundNumberFrom(org.hyperledger.besu.plugin.data.BlockHeader header)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Extracts the round number from the supplied header and returns it to the caller.
    Collection<org.hyperledger.besu.datatypes.Address>
    getSignersFrom(org.hyperledger.besu.plugin.data.BlockHeader header)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Extracts the collection of signers from the supplied block header and returns them to the caller.
  • Method Details

    • getRoundNumberFrom

      int getRoundNumberFrom(org.hyperledger.besu.plugin.data.BlockHeader header)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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

      Collection<org.hyperledger.besu.datatypes.Address> getSignersFrom(org.hyperledger.besu.plugin.data.BlockHeader header)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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