diff --git a/.gitignore b/.gitignore index ccab4ae..91fae6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .DS_Store *.tar.lz4 +**/validators/**/data +**/validators/**/wasm \ No newline at end of file diff --git a/multival-novote/README.md b/multival-novote/README.md index ce34473..2829841 100644 --- a/multival-novote/README.md +++ b/multival-novote/README.md @@ -9,7 +9,26 @@ Allows to take a network state snapshot, devnetify to run it locally with multi NOTE: Docker images always have a version tag, you can build image locally and make a special version tag. -Meanwhile, locally avaialable binaries (injectived), are not tagged, it uses whatever binary is available. +Meanwhile, locally available binaries (injectived), are not tagged, it uses whatever binary is available. + +Requirements: Make sure you have git-lfs installed and pulled the repo with `git lfs pull` to have all local files. + +If you already cloned: + +```bash +git lfs install +git lfs fetch --all +git lfs checkout # or: git lfs pull +``` + +If you haven’t cloned yet: + +```bash +git lfs install +git clone https://github.com/InjectiveLabs/injective-devnetify-testbed +cd injective-devnetify-testbed +git lfs pull +``` ```bash # after cloning repo don't forget to initialize LFS @@ -20,14 +39,14 @@ git lfs pull STEPS: -0. *(optionally)* Re-generate target validators dirs and keys using `make gen-4` if target version changes. Uses [chain-stresser](https://github.com/InjectiveLabs/chain-stresser) binary. +0. _(optionally)_ Re-generate target validators dirs and keys using `make gen-4` if target version changes. Uses [chain-stresser](https://github.com/InjectiveLabs/chain-stresser) binary. 1. Download the latest [mainnet state snapshot](https://polkachu.com/tendermint_snapshots/injective) from Polkachu, put archive into `injective-1/` dir. 2. Run `make unpack`, it will decompress and copy data into all 4 validators. 3. Run `make devnetify`, wait for it to finish. Tip: set `UPGRADE_HANDLER_VERSION` and `DOCKER_IMAGE` in [./injective-1/.env](./injective-1/.env) file. 4. Tada! If it exited with 0, you have a multi-validator state with 4 validators, ready to be used for testing. 5. Run `make injectived-start` to start docker compose network of 4 validators, running continuously. 6. Run `make injectived-stop` to stop the docker compose network and clean up. -7. *(optionally)* Run `make clean` to remove all data and rollback to Step 1. (archive not removed, can do `make unpack` next). +7. _(optionally)_ Run `make clean` to remove all data and rollback to Step 1. (archive not removed, can do `make unpack` next). Access the first node using CLI (via Docker container) `./injective-1/cli/injectived-cli-v1.16.4.sh` or via local binary `./injective-1/cli/injectived-cli-local.sh` diff --git a/multival-novote/injective-1/.env b/multival-novote/injective-1/.env index 959bce1..3fa6027 100644 --- a/multival-novote/injective-1/.env +++ b/multival-novote/injective-1/.env @@ -1,2 +1,2 @@ -DOCKER_IMAGE=injectivelabs/injective-core:v1.17.2 -UPGRADE_HANDLER_VERSION="v1.17.2" +DOCKER_IMAGE=injectivelabs/injective-core:local +UPGRADE_HANDLER_VERSION="v1.19.0" \ No newline at end of file diff --git a/multival-novote/injective-1/cli/devnetify.sh b/multival-novote/injective-1/cli/devnetify.sh index f856db4..1321131 100755 --- a/multival-novote/injective-1/cli/devnetify.sh +++ b/multival-novote/injective-1/cli/devnetify.sh @@ -1,5 +1,17 @@ #!/bin/bash -docker compose -f ./injective-1/docker-compose.devnetify.yml up -sleep 1 # 5s + 1s total max time -docker compose -f ./injective-1/docker-compose.devnetify.yml down +set -uo pipefail + +COMPOSE_FILE=./injective-1/docker-compose.devnetify.yml + +exit_code=0 +docker compose -f "${COMPOSE_FILE}" up --abort-on-container-failure || exit_code=$? + +down_code=0 +docker compose -f "${COMPOSE_FILE}" down || down_code=$? + +if [ "${exit_code}" -ne 0 ]; then + exit "${exit_code}" +fi + +exit "${down_code}" diff --git a/multival-novote/injective-1/docker-compose.yml b/multival-novote/injective-1/docker-compose.yml index 37e7586..358d112 100644 --- a/multival-novote/injective-1/docker-compose.yml +++ b/multival-novote/injective-1/docker-compose.yml @@ -1,6 +1,6 @@ services: injectived0: - container_name: devnet-validator-0 + container_name: injstress-validator-0 image: "${DOCKER_IMAGE}" environment: - DEBUG=0 @@ -26,7 +26,7 @@ services: ipv4_address: 172.127.0.2 command: injectived --home=/root/.injectived start injectived1: - container_name: devnet-validator-1 + container_name: injstress-validator-1 image: "${DOCKER_IMAGE}" environment: - DEBUG=0 @@ -44,7 +44,7 @@ services: ipv4_address: 172.127.0.3 command: injectived --home=/root/.injectived start injectived2: - container_name: devnet-validator-2 + container_name: injstress-validator-2 image: "${DOCKER_IMAGE}" environment: - DEBUG=0 @@ -62,7 +62,7 @@ services: ipv4_address: 172.127.0.4 command: injectived --home=/root/.injectived start injectived3: - container_name: devnet-validator-3 + container_name: injstress-validator-3 image: "${DOCKER_IMAGE}" environment: - DEBUG=0 diff --git a/multival-novote/injective-1/instances/0/accounts.json b/multival-novote/injective-1/instances/0/accounts.json index 19e84dd..af46e7c 100644 --- a/multival-novote/injective-1/instances/0/accounts.json +++ b/multival-novote/injective-1/instances/0/accounts.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5053f11afbb893bed08ba1eab1d9e214d29aacf2c80b87271ae114a398c89530 +oid sha256:eab57302e60c036fd215a9217903457b9efb2b1f9e49e917ae54da3d16190eb6 size 189 diff --git a/multival-novote/injective-1/validators/0/config/app.toml b/multival-novote/injective-1/validators/0/config/app.toml index afd3756..f95e319 100644 --- a/multival-novote/injective-1/validators/0/config/app.toml +++ b/multival-novote/injective-1/validators/0/config/app.toml @@ -106,7 +106,8 @@ prometheus-retention-time = 0 # # Example: # [["chain_id", "cosmoshub-1"]] -global-labels = [] +global-labels = [ +] # MetricsSink defines the type of metrics sink to use. metrics-sink = "" @@ -211,7 +212,7 @@ ws-address = "0.0.0.0:8546" # API defines a list of JSON-RPC namespaces that should be enabled # Example: "eth,txpool,personal,net,debug,web3" -api = "eth,web3,net,debug,txpool,inj" +api = "eth,net,web3" # GasCap sets a cap on gas that can be used in eth_call/estimateGas (0=infinite). gas-cap = 25000000 @@ -316,4 +317,4 @@ stop-node-on-err = true # # Note, this configuration only applies to SDK built-in app-side mempool # implementations. -max-txs = 500000 +max-txs = 500000 \ No newline at end of file diff --git a/multival-novote/injective-1/validators/0/config/config.toml b/multival-novote/injective-1/validators/0/config/config.toml index d3b6bf9..58e3734 100644 --- a/multival-novote/injective-1/validators/0/config/config.toml +++ b/multival-novote/injective-1/validators/0/config/config.toml @@ -264,7 +264,7 @@ external_address = "" seeds = "" # Comma separated list of nodes to keep persistent connections to -persistent_peers = "864b0a27babd8e63ae5109625b17a36e24692f88@172.127.0.3:26656,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578@172.127.0.4:26656,bc8e37a3a4eac058114a2f984059a331708e96ba@172.127.0.5:26656" +persistent_peers = "212bd71aa2f6f2e1d6c6404433a56fc246ba140e@172.127.0.3:26656,a71bd13567b64c337369ea599aab1ef0115187f4@172.127.0.4:26656,f9b58f709a0ce84802af590dd5df02ea8fda4614@172.127.0.5:26656" # Path to address book addr_book_file = "config/addrbook.json" @@ -307,7 +307,7 @@ pex = true seed_mode = false # Comma separated list of peer IDs to keep private (will not be gossiped to other peers) -private_peer_ids = "010df55920457ef3bed7a7efe9571f4ee78785a0,864b0a27babd8e63ae5109625b17a36e24692f88,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578,bc8e37a3a4eac058114a2f984059a331708e96ba" +private_peer_ids = "50b3316ee14d4f8129d2074e163888fc793a4616,212bd71aa2f6f2e1d6c6404433a56fc246ba140e,a71bd13567b64c337369ea599aab1ef0115187f4,f9b58f709a0ce84802af590dd5df02ea8fda4614" # Toggle to disable guard against peers connecting from the same ip. allow_duplicate_ip = false @@ -508,7 +508,7 @@ peer_query_maj23_sleep_duration = "2s" # 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 +discard_abci_responses = true # The representation of keys in the database. # The current representation of keys in Comet's stores is considered to be v1 @@ -580,7 +580,7 @@ initial_block_results_retain_height = 0 # - 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" +indexer = "null" # The PostgreSQL connection configuration, the connection format: # postgresql://:@:/? diff --git a/multival-novote/injective-1/validators/0/config/genesis.json b/multival-novote/injective-1/validators/0/config/genesis.json index d1feabf..50126db 100644 --- a/multival-novote/injective-1/validators/0/config/genesis.json +++ b/multival-novote/injective-1/validators/0/config/genesis.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fcf3f1f4c1a127d136948ec01bfaa5a891429352f0b98577572a1bf4f4e2fa7c -size 29442 +oid sha256:8c8bda492d7cafbda5f26bf6535a844e19b3a9067f77fcaacafca70bc1e97d98 +size 29801 diff --git a/multival-novote/injective-1/validators/0/config/node_key.json b/multival-novote/injective-1/validators/0/config/node_key.json index 35be498..69f7b5c 100644 --- a/multival-novote/injective-1/validators/0/config/node_key.json +++ b/multival-novote/injective-1/validators/0/config/node_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a882c9bbd74f83cf75b266c3b99677c19cddc987a088139d1d5daba4c51a7abf +oid sha256:ed05c66197ad367eebc58305b81483fca7726f72fe03b6f35eca75659e9947f9 size 148 diff --git a/multival-novote/injective-1/validators/0/config/priv_validator_key.json b/multival-novote/injective-1/validators/0/config/priv_validator_key.json index 9f42d1f..b7268cb 100644 --- a/multival-novote/injective-1/validators/0/config/priv_validator_key.json +++ b/multival-novote/injective-1/validators/0/config/priv_validator_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f129491a31e78d31ad71dd799552ac2d27259dc6f4b2a3dd998d26ab9abe3685 +oid sha256:be1fc1594d4310bbd884ad66ee6400d7e39ed07067f7cb12b1f1cd83d73b1bfe size 345 diff --git a/multival-novote/injective-1/validators/1/config/app.toml b/multival-novote/injective-1/validators/1/config/app.toml index 0be5766..f95e319 100644 --- a/multival-novote/injective-1/validators/1/config/app.toml +++ b/multival-novote/injective-1/validators/1/config/app.toml @@ -106,7 +106,8 @@ prometheus-retention-time = 0 # # Example: # [["chain_id", "cosmoshub-1"]] -global-labels = [] +global-labels = [ +] # MetricsSink defines the type of metrics sink to use. metrics-sink = "" @@ -209,10 +210,10 @@ address = "0.0.0.0:8545" # Address defines the EVM WebSocket server address to bind to. ws-address = "0.0.0.0:8546" -api = "eth,web3,net,debug,txpool,inj" - # API defines a list of JSON-RPC namespaces that should be enabled # Example: "eth,txpool,personal,net,debug,web3" +api = "eth,net,web3" + # GasCap sets a cap on gas that can be used in eth_call/estimateGas (0=infinite). gas-cap = 25000000 @@ -316,4 +317,4 @@ stop-node-on-err = true # # Note, this configuration only applies to SDK built-in app-side mempool # implementations. -max-txs = 500000 +max-txs = 500000 \ No newline at end of file diff --git a/multival-novote/injective-1/validators/1/config/config.toml b/multival-novote/injective-1/validators/1/config/config.toml index f51494e..64e60af 100644 --- a/multival-novote/injective-1/validators/1/config/config.toml +++ b/multival-novote/injective-1/validators/1/config/config.toml @@ -264,7 +264,7 @@ external_address = "" seeds = "" # Comma separated list of nodes to keep persistent connections to -persistent_peers = "010df55920457ef3bed7a7efe9571f4ee78785a0@172.127.0.2:26656,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578@172.127.0.4:26656,bc8e37a3a4eac058114a2f984059a331708e96ba@172.127.0.5:26656" +persistent_peers = "50b3316ee14d4f8129d2074e163888fc793a4616@172.127.0.2:26656,a71bd13567b64c337369ea599aab1ef0115187f4@172.127.0.4:26656,f9b58f709a0ce84802af590dd5df02ea8fda4614@172.127.0.5:26656" # Path to address book addr_book_file = "config/addrbook.json" @@ -307,7 +307,7 @@ pex = true seed_mode = false # Comma separated list of peer IDs to keep private (will not be gossiped to other peers) -private_peer_ids = "010df55920457ef3bed7a7efe9571f4ee78785a0,864b0a27babd8e63ae5109625b17a36e24692f88,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578,bc8e37a3a4eac058114a2f984059a331708e96ba" +private_peer_ids = "50b3316ee14d4f8129d2074e163888fc793a4616,212bd71aa2f6f2e1d6c6404433a56fc246ba140e,a71bd13567b64c337369ea599aab1ef0115187f4,f9b58f709a0ce84802af590dd5df02ea8fda4614" # Toggle to disable guard against peers connecting from the same ip. allow_duplicate_ip = false @@ -508,7 +508,7 @@ peer_query_maj23_sleep_duration = "2s" # 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 +discard_abci_responses = true # The representation of keys in the database. # The current representation of keys in Comet's stores is considered to be v1 @@ -580,7 +580,7 @@ initial_block_results_retain_height = 0 # - 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" +indexer = "null" # The PostgreSQL connection configuration, the connection format: # postgresql://:@:/? diff --git a/multival-novote/injective-1/validators/1/config/genesis.json b/multival-novote/injective-1/validators/1/config/genesis.json index d1feabf..50126db 100644 --- a/multival-novote/injective-1/validators/1/config/genesis.json +++ b/multival-novote/injective-1/validators/1/config/genesis.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fcf3f1f4c1a127d136948ec01bfaa5a891429352f0b98577572a1bf4f4e2fa7c -size 29442 +oid sha256:8c8bda492d7cafbda5f26bf6535a844e19b3a9067f77fcaacafca70bc1e97d98 +size 29801 diff --git a/multival-novote/injective-1/validators/1/config/node_key.json b/multival-novote/injective-1/validators/1/config/node_key.json index 408d673..4fe6f10 100644 --- a/multival-novote/injective-1/validators/1/config/node_key.json +++ b/multival-novote/injective-1/validators/1/config/node_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5ac886ed1fe3cc591137757880dbb5e73e49050555376091b572e0d80a1ed121 +oid sha256:5c61406edce9b27d3310ee71d5dd39148b8d5cb7be75aaff345331e8f4aa8b85 size 148 diff --git a/multival-novote/injective-1/validators/1/config/priv_validator_key.json b/multival-novote/injective-1/validators/1/config/priv_validator_key.json index f723955..d95f825 100644 --- a/multival-novote/injective-1/validators/1/config/priv_validator_key.json +++ b/multival-novote/injective-1/validators/1/config/priv_validator_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:25ceffe43c0ca80bdc02817cc91f3b6041f02ffaa3dd9d7bec4601f62508133b +oid sha256:03b11c261e16fe0a756aa306bd7bec276ddade8825626b43e8adc497fb8640d2 size 345 diff --git a/multival-novote/injective-1/validators/2/config/app.toml b/multival-novote/injective-1/validators/2/config/app.toml index 0be5766..f95e319 100644 --- a/multival-novote/injective-1/validators/2/config/app.toml +++ b/multival-novote/injective-1/validators/2/config/app.toml @@ -106,7 +106,8 @@ prometheus-retention-time = 0 # # Example: # [["chain_id", "cosmoshub-1"]] -global-labels = [] +global-labels = [ +] # MetricsSink defines the type of metrics sink to use. metrics-sink = "" @@ -209,10 +210,10 @@ address = "0.0.0.0:8545" # Address defines the EVM WebSocket server address to bind to. ws-address = "0.0.0.0:8546" -api = "eth,web3,net,debug,txpool,inj" - # API defines a list of JSON-RPC namespaces that should be enabled # Example: "eth,txpool,personal,net,debug,web3" +api = "eth,net,web3" + # GasCap sets a cap on gas that can be used in eth_call/estimateGas (0=infinite). gas-cap = 25000000 @@ -316,4 +317,4 @@ stop-node-on-err = true # # Note, this configuration only applies to SDK built-in app-side mempool # implementations. -max-txs = 500000 +max-txs = 500000 \ No newline at end of file diff --git a/multival-novote/injective-1/validators/2/config/config.toml b/multival-novote/injective-1/validators/2/config/config.toml index 6d30492..8c4e195 100644 --- a/multival-novote/injective-1/validators/2/config/config.toml +++ b/multival-novote/injective-1/validators/2/config/config.toml @@ -264,7 +264,7 @@ external_address = "" seeds = "" # Comma separated list of nodes to keep persistent connections to -persistent_peers = "010df55920457ef3bed7a7efe9571f4ee78785a0@172.127.0.2:26656,864b0a27babd8e63ae5109625b17a36e24692f88@172.127.0.3:26656,bc8e37a3a4eac058114a2f984059a331708e96ba@172.127.0.5:26656" +persistent_peers = "50b3316ee14d4f8129d2074e163888fc793a4616@172.127.0.2:26656,212bd71aa2f6f2e1d6c6404433a56fc246ba140e@172.127.0.3:26656,f9b58f709a0ce84802af590dd5df02ea8fda4614@172.127.0.5:26656" # Path to address book addr_book_file = "config/addrbook.json" @@ -307,7 +307,7 @@ pex = true seed_mode = false # Comma separated list of peer IDs to keep private (will not be gossiped to other peers) -private_peer_ids = "010df55920457ef3bed7a7efe9571f4ee78785a0,864b0a27babd8e63ae5109625b17a36e24692f88,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578,bc8e37a3a4eac058114a2f984059a331708e96ba" +private_peer_ids = "50b3316ee14d4f8129d2074e163888fc793a4616,212bd71aa2f6f2e1d6c6404433a56fc246ba140e,a71bd13567b64c337369ea599aab1ef0115187f4,f9b58f709a0ce84802af590dd5df02ea8fda4614" # Toggle to disable guard against peers connecting from the same ip. allow_duplicate_ip = false @@ -508,7 +508,7 @@ peer_query_maj23_sleep_duration = "2s" # 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 +discard_abci_responses = true # The representation of keys in the database. # The current representation of keys in Comet's stores is considered to be v1 @@ -580,7 +580,7 @@ initial_block_results_retain_height = 0 # - 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" +indexer = "null" # The PostgreSQL connection configuration, the connection format: # postgresql://:@:/? diff --git a/multival-novote/injective-1/validators/2/config/genesis.json b/multival-novote/injective-1/validators/2/config/genesis.json index d1feabf..50126db 100644 --- a/multival-novote/injective-1/validators/2/config/genesis.json +++ b/multival-novote/injective-1/validators/2/config/genesis.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fcf3f1f4c1a127d136948ec01bfaa5a891429352f0b98577572a1bf4f4e2fa7c -size 29442 +oid sha256:8c8bda492d7cafbda5f26bf6535a844e19b3a9067f77fcaacafca70bc1e97d98 +size 29801 diff --git a/multival-novote/injective-1/validators/2/config/node_key.json b/multival-novote/injective-1/validators/2/config/node_key.json index 33af805..5db9f31 100644 --- a/multival-novote/injective-1/validators/2/config/node_key.json +++ b/multival-novote/injective-1/validators/2/config/node_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1a955e35ad159f4125b5ac9999c30e19db2d61e9b557eec7ef8c5ae8d5892a16 +oid sha256:b59b4fa2187a0795faa30e12cfd6d65c0b3f9fea2795798277b2a5e23f278285 size 148 diff --git a/multival-novote/injective-1/validators/2/config/priv_validator_key.json b/multival-novote/injective-1/validators/2/config/priv_validator_key.json index 66c416f..1978841 100644 --- a/multival-novote/injective-1/validators/2/config/priv_validator_key.json +++ b/multival-novote/injective-1/validators/2/config/priv_validator_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a0ddeea63f1d80a4532eaf6d4f8175b3f7d6e2413fd691c0dece57dc331276a1 +oid sha256:7f66e278638f01cd027a02e29dd835595da8e109401477962de56cba4dbf0fa0 size 345 diff --git a/multival-novote/injective-1/validators/3/config/app.toml b/multival-novote/injective-1/validators/3/config/app.toml index 0be5766..f95e319 100644 --- a/multival-novote/injective-1/validators/3/config/app.toml +++ b/multival-novote/injective-1/validators/3/config/app.toml @@ -106,7 +106,8 @@ prometheus-retention-time = 0 # # Example: # [["chain_id", "cosmoshub-1"]] -global-labels = [] +global-labels = [ +] # MetricsSink defines the type of metrics sink to use. metrics-sink = "" @@ -209,10 +210,10 @@ address = "0.0.0.0:8545" # Address defines the EVM WebSocket server address to bind to. ws-address = "0.0.0.0:8546" -api = "eth,web3,net,debug,txpool,inj" - # API defines a list of JSON-RPC namespaces that should be enabled # Example: "eth,txpool,personal,net,debug,web3" +api = "eth,net,web3" + # GasCap sets a cap on gas that can be used in eth_call/estimateGas (0=infinite). gas-cap = 25000000 @@ -316,4 +317,4 @@ stop-node-on-err = true # # Note, this configuration only applies to SDK built-in app-side mempool # implementations. -max-txs = 500000 +max-txs = 500000 \ No newline at end of file diff --git a/multival-novote/injective-1/validators/3/config/config.toml b/multival-novote/injective-1/validators/3/config/config.toml index 39a0efd..acb3f15 100644 --- a/multival-novote/injective-1/validators/3/config/config.toml +++ b/multival-novote/injective-1/validators/3/config/config.toml @@ -264,7 +264,7 @@ external_address = "" seeds = "" # Comma separated list of nodes to keep persistent connections to -persistent_peers = "010df55920457ef3bed7a7efe9571f4ee78785a0@172.127.0.2:26656,864b0a27babd8e63ae5109625b17a36e24692f88@172.127.0.3:26656,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578@172.127.0.4:26656" +persistent_peers = "50b3316ee14d4f8129d2074e163888fc793a4616@172.127.0.2:26656,212bd71aa2f6f2e1d6c6404433a56fc246ba140e@172.127.0.3:26656,a71bd13567b64c337369ea599aab1ef0115187f4@172.127.0.4:26656" # Path to address book addr_book_file = "config/addrbook.json" @@ -307,7 +307,7 @@ pex = true seed_mode = false # Comma separated list of peer IDs to keep private (will not be gossiped to other peers) -private_peer_ids = "010df55920457ef3bed7a7efe9571f4ee78785a0,864b0a27babd8e63ae5109625b17a36e24692f88,2f999a46fb2cda3e6fe32d9f7d33dd84ee8c2578,bc8e37a3a4eac058114a2f984059a331708e96ba" +private_peer_ids = "50b3316ee14d4f8129d2074e163888fc793a4616,212bd71aa2f6f2e1d6c6404433a56fc246ba140e,a71bd13567b64c337369ea599aab1ef0115187f4,f9b58f709a0ce84802af590dd5df02ea8fda4614" # Toggle to disable guard against peers connecting from the same ip. allow_duplicate_ip = false @@ -508,7 +508,7 @@ peer_query_maj23_sleep_duration = "2s" # 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 +discard_abci_responses = true # The representation of keys in the database. # The current representation of keys in Comet's stores is considered to be v1 @@ -580,7 +580,7 @@ initial_block_results_retain_height = 0 # - 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" +indexer = "null" # The PostgreSQL connection configuration, the connection format: # postgresql://:@:/? diff --git a/multival-novote/injective-1/validators/3/config/genesis.json b/multival-novote/injective-1/validators/3/config/genesis.json index d1feabf..50126db 100644 --- a/multival-novote/injective-1/validators/3/config/genesis.json +++ b/multival-novote/injective-1/validators/3/config/genesis.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fcf3f1f4c1a127d136948ec01bfaa5a891429352f0b98577572a1bf4f4e2fa7c -size 29442 +oid sha256:8c8bda492d7cafbda5f26bf6535a844e19b3a9067f77fcaacafca70bc1e97d98 +size 29801 diff --git a/multival-novote/injective-1/validators/3/config/node_key.json b/multival-novote/injective-1/validators/3/config/node_key.json index 8004cc7..bb629be 100644 --- a/multival-novote/injective-1/validators/3/config/node_key.json +++ b/multival-novote/injective-1/validators/3/config/node_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9b98c0268baa541030e0de4c94484fb33c3ef822482d7c39f3dde0b56430400a +oid sha256:c75e01ff33de11e1cf0f8866e67764a6dfd25ca7a316fccb28b98c4d0acf8901 size 148 diff --git a/multival-novote/injective-1/validators/3/config/priv_validator_key.json b/multival-novote/injective-1/validators/3/config/priv_validator_key.json index f45f804..0a5b447 100644 --- a/multival-novote/injective-1/validators/3/config/priv_validator_key.json +++ b/multival-novote/injective-1/validators/3/config/priv_validator_key.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1749df626f9ccc9963dd6a1bec57c6a909bbc0b6bb4ec43dc6e9099a0e410a9d +oid sha256:b6711eca50a2769c1ceed4097044d9bd5076411ab6cfaca666249bbf0b5aa539 size 345 diff --git a/multival-novote/injective-1/validators/ids.json b/multival-novote/injective-1/validators/ids.json index 72ca90c..3d8bb2d 100644 --- a/multival-novote/injective-1/validators/ids.json +++ b/multival-novote/injective-1/validators/ids.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d56adb6dfc8081969e36f70b4d953da2cb3d51613fe24e85822c2f2cdc574404 +oid sha256:50cc107190074a570ad02ff1748525b253e88d6a72feec223522400469f2878d size 173 diff --git a/multival-novote/injective-888/cli/devnetify.sh b/multival-novote/injective-888/cli/devnetify.sh index 69c5f32..261dd48 100755 --- a/multival-novote/injective-888/cli/devnetify.sh +++ b/multival-novote/injective-888/cli/devnetify.sh @@ -1,5 +1,17 @@ #!/bin/bash -docker compose -f ./injective-888/docker-compose.devnetify.yml up -sleep 1 # 5s + 1s total max time -docker compose -f ./injective-888/docker-compose.devnetify.yml down +set -uo pipefail + +COMPOSE_FILE=./injective-888/docker-compose.devnetify.yml + +exit_code=0 +docker compose -f "${COMPOSE_FILE}" up --abort-on-container-failure || exit_code=$? + +down_code=0 +docker compose -f "${COMPOSE_FILE}" down || down_code=$? + +if [ "${exit_code}" -ne 0 ]; then + exit "${exit_code}" +fi + +exit "${down_code}"