java.lang.Object
io.hotmoka.local.Config
The configuration of a node.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfig.Builder<T extends Config.Builder<T>>The builder of a configuration object. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PathThe directory where the node's data will be persisted.final BigIntegerThe maximal amount of gas that a view transaction can consume.final intThe maximal number of polling attempts, in milliseconds, while waiting for the result of a posted transaction.final intThe delay of two subsequent polling attempts, in milliseconds, while waiting for the result of a posted transaction.final intThe size of the cache for theNode.getRequest(TransactionReference)method.final intThe size of the cache for theNode.getResponse(TransactionReference)method. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dir
The directory where the node's data will be persisted. It defaults tochainin the current directory. -
maxPollingAttempts
public final int maxPollingAttemptsThe maximal number of polling attempts, in milliseconds, while waiting for the result of a posted transaction. It defaults to 60. -
pollingDelay
public final int pollingDelayThe delay of two subsequent polling attempts, in milliseconds, while waiting for the result of a posted transaction. This delay is then increased by 10% at each subsequent attempt. It defaults to 10. -
requestCacheSize
public final int requestCacheSizeThe size of the cache for theNode.getRequest(TransactionReference)method. It defaults to 1,000. -
responseCacheSize
public final int responseCacheSizeThe size of the cache for theNode.getResponse(TransactionReference)method. It defaults to 1,000. -
maxGasPerViewTransaction
The maximal amount of gas that a view transaction can consume. It defaults to 100_000_000.
-
-
Constructor Details
-
Config
Copy-constructor for subclassing.
-