Skip to content

Instantly share code, notes, and snippets.

@ryan-u410
Created September 27, 2022 16:52
Show Gist options
  • Save ryan-u410/080838de921f0128ff877d8eb05b7741 to your computer and use it in GitHub Desktop.
Save ryan-u410/080838de921f0128ff877d8eb05b7741 to your computer and use it in GitHub Desktop.
@@ -10,15 +10,14 @@
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = ""
-# default: the last 100 states are kept in addition to every 500th state; pruning at 10 block intervals
+# default: the last 362880 states are kept, pruning at 10 block intervals
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
-# everything: all saved states will be deleted, storing only the current state; pruning at 10 block intervals
-# custom: allow pruning options to be manually specified through 'pruning-keep-recent', 'pruning-keep-every', and 'pruning-interval'
+# everything: 2 latest states will be kept; pruning at 10 block intervals.
+# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval'
pruning = "default"
# These are applied if and only if the pruning strategy is custom.
pruning-keep-recent = "0"
-pruning-keep-every = "0"
pruning-interval = "0"
# HaltHeight contains a non-zero block height at which a node will gracefully
@@ -64,6 +63,12 @@ index-events = []
# Default cache size is 50mb.
iavl-cache-size = 781250
+# AppDBBackend defines the database backend type to use for the application and snapshots DBs.
+# An empty string indicates that a fallback will be used.
+# First fallback is the deprecated compile-time types.DBBackend value.
+# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml.
+app-db-backend = ""
+
###############################################################################
### Telemetry Configuration ###
###############################################################################
@@ -152,6 +157,18 @@ retries = 3
# Offline defines if Rosetta server should run in offline mode.
offline = false
+# EnableDefaultSuggestedFee defines if the server should suggest fee by default.
+# If 'construction/medata' is called without gas limit and gas price,
+# suggested fee based on gas-to-suggest and denom-to-suggest will be given.
+enable-fee-suggestion = false
+
+# GasToSuggest defines gas limit when calculating the fee
+gas-to-suggest = 200000
+
+# DenomToSuggest defines the defult denom for fee suggestion.
+# Price must be in minimum-gas-prices.
+denom-to-suggest = "uatom"
+
###############################################################################
### gRPC Configuration ###
###############################################################################
@@ -164,6 +181,14 @@ enable = true
# Address defines the gRPC server address to bind to.
address = "0.0.0.0:9090"
+# MaxRecvMsgSize defines the max message size in bytes the server can receive.
+# The default value is 10MB.
+max-recv-msg-size = "10485760"
+
+# MaxSendMsgSize defines the max message size in bytes the server can send.
+# The default value is math.MaxInt32.
+max-send-msg-size = "2147483647"
+
###############################################################################
### gRPC Web Configuration ###
###############################################################################
@@ -189,8 +214,15 @@ enable-unsafe-cors = false
[state-sync]
# snapshot-interval specifies the block interval at which local state sync snapshots are
-# taken (0 to disable). Must be a multiple of pruning-keep-every.
+# taken (0 to disable).
snapshot-interval = 0
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
snapshot-keep-recent = 2
+
+[wasm]
+# This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
+query_gas_limit = 300000
+# This is the number of wasm vm instances we keep cached in memory for speed-up
+# Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
+lru_size = 0
\ No newline at end of file
@@ -15,7 +15,7 @@
proxy_app = "tcp://127.0.0.1:26658"
# A custom human readable name for this node
-moniker = "v1"
+moniker = "v3"
# If this node is many blocks behind the tip of the chain, FastSync
# allows them to catchup quickly by downloading blocks in parallel
@@ -136,6 +136,33 @@ max_subscription_clients = 100
# the estimated # maximum number of broadcast_tx_commit calls per block.
max_subscriptions_per_client = 5
+# Experimental parameter to specify the maximum number of events a node will
+# buffer, per subscription, before returning an error and closing the
+# subscription. Must be set to at least 100, but higher values will accommodate
+# higher event throughput rates (and will use more memory).
+experimental_subscription_buffer_size = 200
+
+# Experimental parameter to specify the maximum number of RPC responses that
+# can be buffered per WebSocket client. If clients cannot read from the
+# WebSocket endpoint fast enough, they will be disconnected, so increasing this
+# parameter may reduce the chances of them being disconnected (but will cause
+# the node to use more memory).
+#
+# Must be at least the same as "experimental_subscription_buffer_size",
+# otherwise connections could be dropped unnecessarily. This value should
+# ideally be somewhat higher than "experimental_subscription_buffer_size" to
+# accommodate non-subscription-related RPC responses.
+experimental_websocket_write_buffer_size = 200
+
+# If a WebSocket client cannot read fast enough, at present we may
+# silently drop events instead of generating an error or disconnecting the
+# client.
+#
+# Enabling this experimental parameter will cause the WebSocket connection to
+# be closed instead if it cannot read fast enough, allowing for greater
+# predictability in subscription behaviour.
+experimental_close_on_slow_client = false
+
# How long to wait for a tx to be committed during /broadcast_tx_commit.
# WARNING: Using a value larger than 10s will result in increasing the
# global HTTP write timeout, which applies to all connections and endpoints.
@@ -245,6 +272,11 @@ dial_timeout = "3s"
#######################################################
[mempool]
+# Mempool version to use:
+# 1) "v0" - (default) FIFO mempool.
+# 2) "v1" - prioritized mempool.
+version = "v0"
+
recheck = true
broadcast = true
wal_dir = ""
@@ -274,6 +306,22 @@ max_tx_bytes = 1048576
# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
max_batch_bytes = 0
+# ttl-duration, if non-zero, defines the maximum amount of time a transaction
+# can exist for in the mempool.
+#
+# Note, if ttl-num-blocks is also defined, a transaction will be removed if it
+# has existed in the mempool at least ttl-num-blocks number of blocks or if it's
+# insertion time into the mempool is beyond ttl-duration.
+ttl-duration = "0s"
+
+# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction
+# can exist for in the mempool.
+#
+# Note, if ttl-duration is also defined, a transaction will be removed if it
+# has existed in the mempool at least ttl-num-blocks number of blocks or if
+# it's insertion time into the mempool is beyond ttl-duration.
+ttl-num-blocks = 0
+
#######################################################
### State Sync Configuration Options ###
#######################################################
@@ -362,6 +410,16 @@ create_empty_blocks_interval = "0s"
peer_gossip_sleep_duration = "100ms"
peer_query_maj23_sleep_duration = "2s"
+#######################################################
+### Storage Configuration Options ###
+#######################################################
+
+# Set to true to discard ABCI responses from the state store, which can save a
+# considerable amount of disk space. Set to false to ensure ABCI responses are
+# persisted. ABCI responses are required for /block_results RPC queries, and to
+# reindex events in the command-line tool.
+discard_abci_responses = false
+
#######################################################
### Transaction Indexer Configuration Options ###
#######################################################
@@ -376,8 +434,14 @@ peer_query_maj23_sleep_duration = "2s"
# 1) "null"
# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
+# 3) "psql" - the indexer services backed by PostgreSQL.
+# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed.
indexer = "kv"
+# The PostgreSQL connection configuration, the connection format:
+# postgresql://<user>:<password>@<host>:<port>/<db>?<opts>
+psql-conn = ""
+
#######################################################
### Instrumentation Configuration Options ###
#######################################################
@@ -1,6 +1,6 @@
{
- "genesis_time": "2022-09-27T16:45:09.754175Z",
- "chain_id": "test-chain-V6mO4s",
+ "genesis_time": "2022-09-27T16:48:15.050282Z",
+ "chain_id": "test-chain-tPvKdC",
"initial_height": "1",
"consensus_params": {
"block": {
@@ -62,10 +62,16 @@
"base": "uumee",
"display": "UMEE",
"name": "UMEE",
- "symbol": "UMEE"
+ "symbol": "UMEE",
+ "uri": "",
+ "uri_hash": ""
}
]
},
+ "bech32ibc": {
+ "nativeHRP": "osmo",
+ "hrpIBCRecords": []
+ },
"capability": {
"index": "1",
"owners": []
@@ -171,6 +177,16 @@
"erc20_to_denoms": [],
"unbatched_transfers": []
},
+ "group": {
+ "group_seq": "0",
+ "groups": [],
+ "group_members": [],
+ "group_policy_seq": "0",
+ "group_policies": [],
+ "proposal_seq": "0",
+ "proposals": [],
+ "votes": []
+ },
"ibc": {
"client_genesis": {
"clients": [],
@@ -204,6 +220,64 @@
"next_channel_sequence": "0"
}
},
+ "leverage": {
+ "params": {
+ "complete_liquidation_threshold": "0.400000000000000000",
+ "minimum_close_factor": "0.050000000000000000",
+ "oracle_reward_factor": "0.010000000000000000",
+ "small_liquidation_size": "500.000000000000000000",
+ "direct_liquidation_fee": "0.050000000000000000"
+ },
+ "registry": [
+ {
+ "base_denom": "uumee",
+ "reserve_factor": "0.100000000000000000",
+ "collateral_weight": "0.350000000000000000",
+ "liquidation_threshold": "0.500000000000000000",
+ "base_borrow_rate": "0.050000000000000000",
+ "kink_borrow_rate": "0.100000000000000000",
+ "max_borrow_rate": "0.800000000000000000",
+ "kink_utilization": "0.500000000000000000",
+ "liquidation_incentive": "0.100000000000000000",
+ "symbol_denom": "UMEE",
+ "exponent": 6,
+ "enable_msg_supply": true,
+ "enable_msg_borrow": true,
+ "blacklist": false,
+ "max_collateral_share": "1.000000000000000000",
+ "max_supply_utilization": "0.900000000000000000",
+ "min_collateral_liquidity": "0.300000000000000000",
+ "max_supply": "1000000000000000"
+ },
+ {
+ "base_denom": "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
+ "reserve_factor": "0.100000000000000000",
+ "collateral_weight": "0.700000000000000000",
+ "liquidation_threshold": "0.800000000000000000",
+ "base_borrow_rate": "0.030000000000000000",
+ "kink_borrow_rate": "0.110000000000000000",
+ "max_borrow_rate": "0.800000000000000000",
+ "kink_utilization": "0.700000000000000000",
+ "liquidation_incentive": "0.050000000000000000",
+ "symbol_denom": "ATOM",
+ "exponent": 6,
+ "enable_msg_supply": true,
+ "enable_msg_borrow": true,
+ "blacklist": false,
+ "max_collateral_share": "1.000000000000000000",
+ "max_supply_utilization": "0.950000000000000000",
+ "min_collateral_liquidity": "0.180000000000000000",
+ "max_supply": "0"
+ }
+ ],
+ "adjusted_borrows": [],
+ "collateral": [],
+ "reserves": [],
+ "last_interest_time": "0",
+ "bad_debts": [],
+ "interest_scalars": [],
+ "utoken_supply": []
+ },
"mint": {
"minter": {
"inflation": "0.130000000000000000",
@@ -218,6 +292,38 @@
"blocks_per_year": "6311520"
}
},
+ "nft": {
+ "classes": [],
+ "entries": []
+ },
+ "oracle": {
+ "params": {
+ "vote_period": "5",
+ "vote_threshold": "0.500000000000000000",
+ "reward_band": "0.020000000000000000",
+ "reward_distribution_window": "5256000",
+ "accept_list": [
+ {
+ "base_denom": "uumee",
+ "symbol_denom": "umee",
+ "exponent": 6
+ },
+ {
+ "base_denom": "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9",
+ "symbol_denom": "atom",
+ "exponent": 6
+ }
+ ],
+ "slash_fraction": "0.000100000000000000",
+ "slash_window": "100800",
+ "min_valid_per_window": "0.050000000000000000"
+ },
+ "feeder_delegations": [],
+ "exchange_rates": [],
+ "miss_counters": [],
+ "aggregate_exchange_rate_prevotes": [],
+ "aggregate_exchange_rate_votes": []
+ },
"params": null,
"slashing": {
"params": {
@@ -236,7 +342,8 @@
"max_validators": 100,
"max_entries": 7,
"historical_entries": 10000,
- "bond_denom": "uumee"
+ "bond_denom": "uumee",
+ "min_commission_rate": "0.000000000000000000"
},
"last_total_power": "0",
"last_validator_powers": [],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment