Class Config

java.lang.Object
io.hotmoka.local.Config

public class Config extends Object
The configuration of a node.
  • Field Details

    • dir

      public final Path dir
      The directory where the node's data will be persisted. It defaults to chain in the current directory.
    • maxPollingAttempts

      public final int maxPollingAttempts
      The maximal number of polling attempts, in milliseconds, while waiting for the result of a posted transaction. It defaults to 60.
    • pollingDelay

      public final int pollingDelay
      The 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 requestCacheSize
      The size of the cache for the Node.getRequest(TransactionReference) method. It defaults to 1,000.
    • responseCacheSize

      public final int responseCacheSize
      The size of the cache for the Node.getResponse(TransactionReference) method. It defaults to 1,000.
    • maxGasPerViewTransaction

      public final BigInteger maxGasPerViewTransaction
      The maximal amount of gas that a view transaction can consume. It defaults to 100_000_000.
  • Constructor Details

    • Config

      protected Config(Config parent)
      Copy-constructor for subclassing.