From b55468d185b7695c95c417f1f7eeed08ad9f5854 Mon Sep 17 00:00:00 2001 From: Raffael Campos Date: Thu, 21 Nov 2024 20:27:55 -0300 Subject: [PATCH] feat: preparing for chain upgrade (#37) * Update network configuration for chain upgrade Added additional files to .gitignore, including .venv and .env. Updated genesis.json with new parameters and validators. Documented detailed validator information in README and archived the old genesis configuration. * revert operators list on README.md * Update nodes in staging genesis.json --- .gitignore | 6 +- configs/network/staging/README.md | 2 +- configs/network/staging/genesis.json | 85 +++++++++++++++++--- configs/network/staging/old/old-genesis.json | 47 +++++++++++ 4 files changed, 127 insertions(+), 13 deletions(-) create mode 100644 configs/network/staging/old/old-genesis.json diff --git a/.gitignore b/.gitignore index e9ab013..5219f2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ # IDEs .idea -.vscode \ No newline at end of file +.vscode +.venv +.env +# directory to store local development files +gitignore \ No newline at end of file diff --git a/configs/network/staging/README.md b/configs/network/staging/README.md index dc9de37..f94e64f 100644 --- a/configs/network/staging/README.md +++ b/configs/network/staging/README.md @@ -13,4 +13,4 @@ The `node_pubkey` in the `network-nodes.csv` file is represented in raw hexadeci For information on transforming these public keys to other formats used in node configurations, please refer to the CometBFT documentation on public key cryptography: -https://docs.cometbft.com/v0.38/spec/core/encoding#public-key-cryptography \ No newline at end of file +https://docs.cometbft.com/v0.38/spec/core/encoding#public-key-cryptography diff --git a/configs/network/staging/genesis.json b/configs/network/staging/genesis.json index 9467c9a..92ba116 100644 --- a/configs/network/staging/genesis.json +++ b/configs/network/staging/genesis.json @@ -1,8 +1,8 @@ { - "genesis_time": "2024-08-08T15:24:23.773191969Z", - "chain_id": "tsn-staging", - "initial_height": 0, - "app_hash": null, + "genesis_time": "2024-11-21T17:42:48.884377433Z", + "chain_id": "truflation-staging-v2", + "initial_height": 1, + "app_hash": "/a3xy/EYe8BFuxJiabC7yOG4jphP6KOhr5tnF5ZGx4c=", "activations": null, "consensus_params": { "block": { @@ -15,17 +15,15 @@ "max_age_duration": 172800000000000, "max_bytes": 1048576 }, - "version": { - "app": 0 - }, "validator": { "pub_key_types": [ "ed25519" ], - "join_expiry": 14400 + "join_expiry": 100800 }, "votes": { - "vote_expiry": 28800 + "vote_expiry": 100800, + "max_votes_per_tx": 100 }, "abci": { "vote_extensions_enable_height": 0 @@ -36,12 +34,77 @@ { "pub_key": "4e0b5c952be7f26698dc1898ff3696ac30e990f25891aeaf88b0285eab4663e1", "power": 1, - "name": "tsn-node-1" + "name": "truflation-node-01" }, { "pub_key": "0c830b69790eaa09315826403c2008edc65b5c7132be9d4b7b4da825c2a166ae", "power": 1, - "name": "tsn-node-2" + "name": "truflation-node-02" + }, + { + "pub_key": "dc2240baa54023b06a3cfa95a5d0c8fccff6f5cd6b918e91bc9f4788cc3fc2cc", + "power": 1, + "name": "kwilteam0" + }, + { + "pub_key": "efa792bf1c3d39820bd901a83756fa3a35942945c3d614a08017549792a842bb", + "power": 1, + "name": "Simply Staking" + }, + { + "pub_key": "8f5b6ca7e5cf4c38373ababf6cea03383d610cf22e33283c55dce5a14dc80d0e", + "power": 1, + "name": "Allnodes.dev" + }, + { + "pub_key": "f2a67c72c8c1ddd4a60541e725db9aaffbb567e328ea4e685ea67dc56fb3337b", + "power": 1, + "name": "Laguna-Node-01" + }, + { + "pub_key": "b1e75c2305bc539b781950a8ef4218fb8830e47abc07ff1a4d2d870e809e1323", + "power": 1, + "name": "Knit-Node-01" + }, + { + "pub_key": "faa49ddc6e145687e17dc51183c8cb4dfe7efc56ff17da8258135cf3a12a0945", + "power": 1, + "name": "Hydrox-Node-01" + }, + { + "pub_key": "be177e0505be04b3d84980d36e717fa3c24878df5a242a136c3583d10cc83687", + "power": 1, + "name": "Trustednode-Node-01" + }, + { + "pub_key": "59b398749cbeb982c565d7807ebd4b764e2042bc3d48cf9bf876a4333e2c404e", + "power": 1, + "name": "Link River" + }, + { + "pub_key": "8096bc52f64624a8caef73d4817f1abff8832467075f5134ce28bec134567e4b", + "power": 1, + "name": "Linkpool" + }, + { + "pub_key": "df817faabddf5ccdc883458c93d1b0fd3eaa4de3f6119c38ddc7b88ba0c83a04", + "power": 1, + "name": "TruLabs-Node-01" + }, + { + "pub_key": "ebe48104aa52a2f4c361a3b1ae8ca46e5df957fa8c3492ffb1fd9653a7b26894", + "power": 1, + "name": "Stakin" + }, + { + "pub_key": "f4e931c0029ad25486259a49d287d0dd4002c3f92f4961292e0321fc88080f12", + "power": 1, + "name": "Node Stake" + }, + { + "pub_key": "eee4ec38245dc931e47c01e1b33c7a9d7beb8b7830be974c3a097ac0820a5923", + "power": 1, + "name": "Usher labs" } ] } \ No newline at end of file diff --git a/configs/network/staging/old/old-genesis.json b/configs/network/staging/old/old-genesis.json new file mode 100644 index 0000000..9467c9a --- /dev/null +++ b/configs/network/staging/old/old-genesis.json @@ -0,0 +1,47 @@ +{ + "genesis_time": "2024-08-08T15:24:23.773191969Z", + "chain_id": "tsn-staging", + "initial_height": 0, + "app_hash": null, + "activations": null, + "consensus_params": { + "block": { + "max_bytes": 6291456, + "max_gas": -1, + "abci_max_bytes": false + }, + "evidence": { + "max_age_num_blocks": 100000, + "max_age_duration": 172800000000000, + "max_bytes": 1048576 + }, + "version": { + "app": 0 + }, + "validator": { + "pub_key_types": [ + "ed25519" + ], + "join_expiry": 14400 + }, + "votes": { + "vote_expiry": 28800 + }, + "abci": { + "vote_extensions_enable_height": 0 + }, + "without_gas_costs": true + }, + "validators": [ + { + "pub_key": "4e0b5c952be7f26698dc1898ff3696ac30e990f25891aeaf88b0285eab4663e1", + "power": 1, + "name": "tsn-node-1" + }, + { + "pub_key": "0c830b69790eaa09315826403c2008edc65b5c7132be9d4b7b4da825c2a166ae", + "power": 1, + "name": "tsn-node-2" + } + ] +} \ No newline at end of file