Module io.hotmoka.node.api
Package io.hotmoka.node.api.nodes
Interface ValidatorsConsensusConfig<C extends ValidatorsConsensusConfig<C,B>,B extends ValidatorsConsensusConfigBuilder<C,B>>
- Type Parameters:
C- the concrete type of the configurationB- 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 Summary
Modifier and TypeMethodDescriptionintYields extra tax paid when a validator acquires the shares of another validator (in percent of the offer cost).intYields the amount of validators' rewards that gets staked.intYields the percent of stake that gets slashed for each misbehaving validator.intYields the percent of stake that gets slashed for validators that do not behave (or do not vote).Methods inherited from interface io.hotmoka.node.api.nodes.ConsensusConfig
allowsUnsignedFaucet, equals, getChainId, getFinalSupply, getGasCostModel, getGenesisTime, getHeightAtFinalSupply, getInitialGasPrice, getInitialSupply, getMaxCumulativeSizeOfDependencies, getMaxDependencies, getMaxGasPerTransaction, getMaxRequestSize, getOblivion, getPublicKeyOfGamete, getPublicKeyOfGameteBase64, getSignatureForRequests, getTargetGasAtReward, getTicketForNewPoll, getVerificationVersion, hashCode, ignoresGasPrice, skipsVerification, toBuilder, toString, toToml
-
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%
-