app.toml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. # This is a TOML config file.
  2. # For more information, see https://github.com/toml-lang/toml
  3. ###############################################################################
  4. ### Base Configuration ###
  5. ###############################################################################
  6. # The minimum gas prices a validator is willing to accept for processing a
  7. # transaction. A transaction's fees must meet the minimum of any denomination
  8. # specified in this config (e.g. 0.25token1;0.0001token2).
  9. minimum-gas-prices = "0.15uluna"
  10. # default: the last 100 states are kept in addition to every 500th state; pruning at 10 block intervals
  11. # nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
  12. # everything: all saved states will be deleted, storing only the current and previous state; pruning at 10 block intervals
  13. # custom: allow pruning options to be manually specified through 'pruning-keep-recent', 'pruning-keep-every', and 'pruning-interval'
  14. pruning = "default"
  15. # These are applied if and only if the pruning strategy is custom.
  16. pruning-keep-recent = "0"
  17. pruning-keep-every = "0"
  18. pruning-interval = "0"
  19. # HaltHeight contains a non-zero block height at which a node will gracefully
  20. # halt and shutdown that can be used to assist upgrades and testing.
  21. #
  22. # Note: Commitment of state will be attempted on the corresponding block.
  23. halt-height = 0
  24. # HaltTime contains a non-zero minimum block time (in Unix seconds) at which
  25. # a node will gracefully halt and shutdown that can be used to assist upgrades
  26. # and testing.
  27. #
  28. # Note: Commitment of state will be attempted on the corresponding block.
  29. halt-time = 0
  30. # MinRetainBlocks defines the minimum block height offset from the current
  31. # block being committed, such that all blocks past this offset are pruned
  32. # from Tendermint. It is used as part of the process of determining the
  33. # ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates
  34. # that no blocks should be pruned.
  35. #
  36. # This configuration value is only responsible for pruning Tendermint blocks.
  37. # It has no bearing on application state pruning which is determined by the
  38. # "pruning-*" configurations.
  39. #
  40. # Note: Tendermint block pruning is dependant on this parameter in conunction
  41. # with the unbonding (safety threshold) period, state pruning and state sync
  42. # snapshot parameters to determine the correct minimum value of
  43. # ResponseCommit.RetainHeight.
  44. min-retain-blocks = 0
  45. # InterBlockCache enables inter-block caching.
  46. inter-block-cache = true
  47. # IndexEvents defines the set of events in the form {eventType}.{attributeKey},
  48. # which informs Tendermint what to index. If empty, all events will be indexed.
  49. #
  50. # Example:
  51. # ["message.sender", "message.recipient"]
  52. index-events = []
  53. # IavlCacheSize set the size of the iavl tree cache.
  54. # Default cache size is 50mb.
  55. iavl-cache-size = 781250
  56. ###############################################################################
  57. ### Telemetry Configuration ###
  58. ###############################################################################
  59. [telemetry]
  60. # Prefixed with keys to separate services.
  61. service-name = ""
  62. # Enabled enables the application telemetry functionality. When enabled,
  63. # an in-memory sink is also enabled by default. Operators may also enabled
  64. # other sinks such as Prometheus.
  65. enabled = false
  66. # Enable prefixing gauge values with hostname.
  67. enable-hostname = false
  68. # Enable adding hostname to labels.
  69. enable-hostname-label = false
  70. # Enable adding service to labels.
  71. enable-service-label = false
  72. # PrometheusRetentionTime, when positive, enables a Prometheus metrics sink.
  73. prometheus-retention-time = 0
  74. # GlobalLabels defines a global set of name/value label tuples applied to all
  75. # metrics emitted using the wrapper functions defined in telemetry package.
  76. #
  77. # Example:
  78. # [["chain_id", "cosmoshub-1"]]
  79. global-labels = [
  80. ]
  81. ###############################################################################
  82. ### API Configuration ###
  83. ###############################################################################
  84. [api]
  85. # Enable defines if the API server should be enabled.
  86. enable = true
  87. # Swagger defines if swagger documentation should automatically be registered.
  88. swagger = true
  89. # Address defines the API server to listen on.
  90. address = "tcp://0.0.0.0:1317"
  91. # MaxOpenConnections defines the number of maximum open connections.
  92. max-open-connections = 1000
  93. # RPCReadTimeout defines the Tendermint RPC read timeout (in seconds).
  94. rpc-read-timeout = 10
  95. # RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds).
  96. rpc-write-timeout = 0
  97. # RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes).
  98. rpc-max-body-bytes = 1000000
  99. # EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
  100. enabled-unsafe-cors = true
  101. ###############################################################################
  102. ### Rosetta Configuration ###
  103. ###############################################################################
  104. [rosetta]
  105. # Enable defines if the Rosetta API server should be enabled.
  106. enable = false
  107. # Address defines the Rosetta API server to listen on.
  108. address = ":8080"
  109. # Network defines the name of the blockchain that will be returned by Rosetta.
  110. blockchain = "app"
  111. # Network defines the name of the network that will be returned by Rosetta.
  112. network = "network"
  113. # Retries defines the number of retries when connecting to the node before failing.
  114. retries = 3
  115. # Offline defines if Rosetta server should run in offline mode.
  116. offline = false
  117. ###############################################################################
  118. ### gRPC Configuration ###
  119. ###############################################################################
  120. [grpc]
  121. # Enable defines if the gRPC server should be enabled.
  122. enable = true
  123. # Address defines the gRPC server address to bind to.
  124. address = "0.0.0.0:9090"
  125. ###############################################################################
  126. ### gRPC Web Configuration ###
  127. ###############################################################################
  128. [grpc-web]
  129. # GRPCWebEnable defines if the gRPC-web should be enabled.
  130. # NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
  131. enable = true
  132. # Address defines the gRPC-web server address to bind to.
  133. address = "0.0.0.0:9091"
  134. # EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
  135. enable-unsafe-cors = true
  136. ###############################################################################
  137. ### State Sync Configuration ###
  138. ###############################################################################
  139. # State sync snapshots allow other nodes to rapidly join the network without replaying historical
  140. # blocks, instead downloading and applying a snapshot of the application state at a given height.
  141. [state-sync]
  142. # snapshot-interval specifies the block interval at which local state sync snapshots are
  143. # taken (0 to disable). Must be a multiple of pruning-keep-every.
  144. snapshot-interval = 0
  145. # snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
  146. snapshot-keep-recent = 2
  147. [wasm]
  148. # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
  149. query_gas_limit = 300000
  150. # This is the number of wasm vm instances we keep cached in memory for speed-up
  151. # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
  152. lru_size = 0