Skip to content

Commit

Permalink
Protocol version 10 changes and more (#1837)
Browse files Browse the repository at this point in the history
## Description
Various changes for Chang+1 HF (protocol version 10) and other fixes
needed.

**General**
- [x] Bump node and cli versions in guild-deploy.sh
- [x] Adjust env for versions accordingly
- [x] Update files as needed for all networks (config, genesis,
topology)

**CNTools 13.3.0**
- [x] Only transform transaction for HW when a HW wallet is used as
source.
- [x] Check for changes needed due to deprecated or changed CLI
subcommands/arguments.
- [x] PROT_VERSION 10.0 version check on withdrawal if not vote
delegated.
- [x] Add own votes cast to proposal list
- [x] remove deprecated CIP-0094 vote command from CNTools pool menu
- [x] Changelog
- [ ] Deferred - New pool voting logic for "buckets" and reward address
vote delegation

**Koios v1.3.0**

- [x] Updated dbsync config (address table, `pool_stats` -> `pool_stat`)
- [x] Bump setup-grest.sh version

---------

Co-authored-by: Greg Beresnev <[email protected]>
Co-authored-by: RdLrT <[email protected]>
Co-authored-by: hodlonaut <[email protected]>
  • Loading branch information
4 people authored Nov 21, 2024
1 parent 5aabba2 commit 46ac71d
Show file tree
Hide file tree
Showing 20 changed files with 496 additions and 387 deletions.
12 changes: 12 additions & 0 deletions docs/Scripts/cntools-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ All notable changes to this tool will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [13.3.0] - 2024-11-21
#### Added
- Own votes cast (SPO|DRep|CC) shown in proposal list.
#### Changed
- Protocol version 10 check on withdrawal if not vote delegated to show informative error if needed.
- Only transform transaction for HW when a HW wallet is used as source.
- Remove deprecated CIP-0094 vote command from CNTools pool menu.
- Adoptions for Koios v1.3.0 queries (DRep status)
#### Fixed
- Wallet DRep delegation status to pre-defined types
- Proposal list vote summary didn't show correct data for all types

## [13.2.3] - 2024-10-16
#### Fixed
- Edge case fix for pool registration when cardano-hw-cli is present
Expand Down
2 changes: 1 addition & 1 deletion files/configs/guild/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 1,
"MinNodeVersion": "9.0.0",
"MinNodeVersion": "10.0.0",
"PeerSharing": true,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
Expand Down
4 changes: 2 additions & 2 deletions files/configs/guild/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"insert_options": {
"tx_out": {
"value": "consumed"
"value": "consumed",
"use_address_table": true
},
"ledger": "enable",
"shelley": {
Expand All @@ -36,7 +37,6 @@
"json_type": "text",
"offchain_pool_data": "enable",
"pool_stat": "enable",
"pool_stats": "enable",
"tx_cbor": "enable"
},
"minSeverity": "Info",
Expand Down
2 changes: 1 addition & 1 deletion files/configs/mainnet/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 0,
"MaxKnownMajorProtocolVersion": 2,
"MinNodeVersion": "9.0.0",
"MinNodeVersion": "10.0.0",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresNoMagic",
Expand Down
4 changes: 2 additions & 2 deletions files/configs/mainnet/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"insert_options": {
"tx_out": {
"value": "consumed"
"value": "consumed",
"use_address_table": true
},
"ledger": "enable",
"shelley": {
Expand All @@ -36,7 +37,6 @@
"json_type": "text",
"offchain_pool_data": "enable",
"pool_stat": "enable",
"pool_stats": "enable",
"tx_cbor": "enable"
},
"minSeverity": "Info",
Expand Down
2 changes: 1 addition & 1 deletion files/configs/preprod/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 2,
"LastKnownBlockVersion-Minor": 0,
"MinNodeVersion": "9.0.0",
"MinNodeVersion": "10.0.0",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
Expand Down
4 changes: 2 additions & 2 deletions files/configs/preprod/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"insert_options": {
"tx_out": {
"value": "consumed"
"value": "consumed",
"use_address_table": true
},
"ledger": "enable",
"shelley": {
Expand All @@ -36,7 +37,6 @@
"json_type": "text",
"offchain_pool_data": "enable",
"pool_stat": "enable",
"pool_stats": "enable",
"tx_cbor": "enable"
},
"minSeverity": "Info",
Expand Down
2 changes: 1 addition & 1 deletion files/configs/preview/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 1,
"MinNodeVersion": "9.0.0",
"MinNodeVersion": "10.0.0",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
Expand Down
4 changes: 2 additions & 2 deletions files/configs/preview/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"insert_options": {
"tx_out": {
"value": "consumed"
"value": "consumed",
"use_address_table": true
},
"ledger": "enable",
"shelley": {
Expand All @@ -36,7 +37,6 @@
"json_type": "text",
"offchain_pool_data": "enable",
"pool_stat": "enable",
"pool_stats": "enable",
"tx_cbor": "enable"
},
"minSeverity": "Info",
Expand Down
2 changes: 1 addition & 1 deletion files/configs/sanchonet/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 1,
"MinNodeVersion": "9.0.0",
"MinNodeVersion": "10.0.0",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
Expand Down
33 changes: 16 additions & 17 deletions files/configs/sanchonet/conway-genesis.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"poolVotingThresholds": {
"committeeNormal": 0.65,
"committeeNoConfidence": 0.65,
"committeeNormal": 0.51,
"committeeNoConfidence": 0.51,
"hardForkInitiation": 0.51,
"motionNoConfidence": 0.6,
"ppSecurityGroup": 0.6
"motionNoConfidence": 0.51,
"ppSecurityGroup": 0.51
},
"dRepVotingThresholds": {
"motionNoConfidence": 0.67,
"committeeNormal": 0.67,
"committeeNoConfidence": 0.65,
"committeeNoConfidence": 0.6,
"updateToConstitution": 0.75,
"hardForkInitiation": 0.6,
"ppNetworkGroup": 0.67,
Expand All @@ -18,9 +18,9 @@
"ppGovGroup": 0.75,
"treasuryWithdrawal": 0.67
},
"committeeMinSize": 5,
"committeeMaxTermLength": 146,
"govActionLifetime": 14,
"committeeMinSize": 0,
"committeeMaxTermLength": 1000,
"govActionLifetime": 60,
"govActionDeposit": 100000000000,
"dRepDeposit": 500000000,
"dRepActivity": 20,
Expand Down Expand Up @@ -280,19 +280,18 @@
],
"constitution": {
"anchor": {
"url": "ipfs://QmQq5hWDNzvDR1ForEktAHrdCQmfSL2u5yctNpzDwoSBu4",
"dataHash": "23b43bebac48a4acc39e578715aa06635d6d900fa3ea7441dfffd6e43b914f7b"
"dataHash": "ca41a91f399259bcefe57f9858e91f6d00e1a38d6d9c63d4052914ea7bd70cb2",
"url": "ipfs://bafkreifnwj6zpu3ixa4siz2lndqybyc5wnnt3jkwyutci4e2tmbnj3xrdm"
},
"script": "edcd84c10e36ae810dc50847477083069db796219b39ccde790484e0"
"script": "fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64"
},
"committee": {
"members": {
"scriptHash-7ceede7d6a89e006408e6b7c6acb3dd094b3f6817e43b4a36d01535b": 500,
"scriptHash-6095e643ea6f1cccb6e463ec34349026b3a48621aac5d512655ab1bf": 500,
"scriptHash-27999ed757d6dac217471ae61d69b1b067b8b240d9e3ff36eb66b5d0": 500,
"scriptHash-87f867a31c0f81360d4d7dcddb6b025ba8383db9bf77a2af7797799d": 500,
"scriptHash-a19a7ba1caede8f3ab3e5e2a928b3798d7d011af18fbd577f7aeb0ec": 500
"keyHash-77c0a65f9302bccab35b44adc1823cb66c88a66c97cf3de8236dd718": 1000
},
"threshold": 0.67
"threshold": {
"numerator": 2,
"denominator": 3
}
}
}
4 changes: 2 additions & 2 deletions files/configs/sanchonet/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"insert_options": {
"tx_out": {
"value": "consumed"
"value": "consumed",
"use_address_table": true
},
"ledger": "enable",
"shelley": {
Expand All @@ -36,7 +37,6 @@
"json_type": "text",
"offchain_pool_data": "enable",
"pool_stat": "enable",
"pool_stats": "enable",
"tx_cbor": "enable"
},
"minSeverity": "Info",
Expand Down
1 change: 1 addition & 0 deletions files/docker/node/release-versions/cardano-cli-latest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.1.1.0
2 changes: 1 addition & 1 deletion files/docker/node/release-versions/cardano-node-latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.2.1
10.1.2
Loading

0 comments on commit 46ac71d

Please sign in to comment.