Interface ValidatorsConsensusConfig<C extends ValidatorsConsensusConfig<C,B>,B extends ValidatorsConsensusConfigBuilder<C,B>>

Type Parameters:
C - the concrete type of the configuration
B - the concrete type of the builder
All Superinterfaces:
ConsensusConfig<C,B>

public interface ValidatorsConsensusConfig<C extends ValidatorsConsensusConfig<C,B>,B extends ValidatorsConsensusConfigBuilder<C,B>> extends ConsensusConfig<C,B>
A specification of the consensus parameters of a Hotmoka node that uses validators. This information is typically contained in the manifest of the node.
  • Method Details

    • getPercentStaked

      int getPercentStaked()
      Yields the amount of validators' rewards that gets staked. The rest is sent to the validators immediately. 1000000 = 1%.
      Returns:
      the amount of validators' rewards that gets staked; 1000000 = 1%
    • getBuyerSurcharge

      int getBuyerSurcharge()
      Yields extra tax paid when a validator acquires the shares of another validator (in percent of the offer cost). 1000000 = 1%.
      Returns:
      the extra tax paid when a validator acquires the shares of another validator (in percent of the offer cost). 1000000 = 1%
    • getSlashingForMisbehaving

      int getSlashingForMisbehaving()
      Yields the percent of stake that gets slashed for each misbehaving validator. 1000000 means 1%.
      Returns:
      the percent of stake that gets slashed for each misbehaving validator. 1000000 means 1%
    • getSlashingForNotBehaving

      int getSlashingForNotBehaving()
      Yields the percent of stake that gets slashed for validators that do not behave (or do not vote). 1000000 means 1%.
      Returns:
      the percent of stake that gets slashed for validators that do not behave (or do not vote). 1000000 means 1%