Interface IbftQueryService

  • All Superinterfaces:
    PoaQueryService

    public interface IbftQueryService
    extends PoaQueryService
    Allows for the IBFT 2.0 specific aspects of the block chain to be queried.
    • Method Detail

      • getRoundNumberFrom

        int getRoundNumberFrom​(BlockHeader header)
        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

        java.util.Collection<Address> getSignersFrom​(BlockHeader header)
        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