Skip to content

Commit

Permalink
Bump minimum required node versions to 10.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jan 14, 2025
1 parent 947f152 commit 349dffd
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
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": "10.1.3",
"MinNodeVersion": "10.1.4",
"PeerSharing": true,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
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": "10.1.3",
"MinNodeVersion": "10.1.4",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresNoMagic",
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": "10.1.3",
"MinNodeVersion": "10.1.4",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
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": "10.1.3",
"MinNodeVersion": "10.1.4",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
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": "10.1.3",
"MinNodeVersion": "10.1.4",
"PeerSharing": false,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
Expand Down
2 changes: 1 addition & 1 deletion files/node-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"secp256k1": "v0.3.2",
"sodium": "dbb48cce5429cb6585c9034f002568964f1ce567"
},
"10.1.3":
"10.1.4":
{
"blst": "3dd0f804b1819e5d03fb22ca2e6fac105932043a",
"secp256k1": "v0.3.2",
Expand Down
10 changes: 5 additions & 5 deletions scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ getBalance() {
asset_name_maxlen=5; asset_amount_maxlen=12
tx_in=""

if [[ -z ${1} ]] || ! utxo_raw=$({CCLI} query utxo ${NETWORK_IDENTIFIER} --address "${1}"); then return 1; fi
if [[ -z ${1} ]] || ! utxo_raw=$(${CCLI} query utxo ${NETWORK_IDENTIFIER} --address "${1}"); then return 1; fi
[[ -z ${utxo_raw} ]] && return

while IFS= read -r line; do
Expand Down Expand Up @@ -2203,8 +2203,8 @@ getRewardInfoKoios() {
getRewardsFromAddr() {
unset stake_address pool_delegation vote_delegation
reward_lovelace=0; stake_deposit=0
println ACTION "{CCLI} query stake-address-info ${NETWORK_IDENTIFIER} --address ${1}"
! stake_address_info=$({CCLI} query stake-address-info ${NETWORK_IDENTIFIER} --address ${1}) && println "ERROR" "\n${FG_RED}NODE CLI ERROR${NC}: ${stake_address_info}\n" && return 1 # print error and return
println ACTION "${CCLI} query stake-address-info ${NETWORK_IDENTIFIER} --address ${1}"
! stake_address_info=$(${CCLI} query stake-address-info ${NETWORK_IDENTIFIER} --address ${1}) && println "ERROR" "\n${FG_RED}NODE CLI ERROR${NC}: ${stake_address_info}\n" && return 1 # print error and return
IFS=',' read -r stake_address reward_lovelace stake_deposit pool_delegation vote_delegation < <( jq -cr '"\(.[0].address//""),\(.[0].rewardAccountBalance//0),\(.[0].delegationDeposit//0),\(.[0].stakeDelegation//""),\(.[0].voteDelegation//"")"' <<< "${stake_address_info}" )
}

Expand Down Expand Up @@ -3859,8 +3859,8 @@ rotatePoolKeys() {
println ERROR "\n${FG_RED}ERROR${NC}: failure during operational certificate counter creation!\n${stdout}"; return 1
fi
elif [[ -f ${pool_opcert_file} ]]; then
println ACTION "{CCLI} query kes-period-info --op-cert-file ${pool_opcert_file} ${NETWORK_IDENTIFIER}"
if ! kes_period_info=$({CCLI} query kes-period-info --op-cert-file "${pool_opcert_file}" ${NETWORK_IDENTIFIER}); then
println ACTION "${CCLI} query kes-period-info --op-cert-file ${pool_opcert_file} ${NETWORK_IDENTIFIER}"
if ! kes_period_info=$(${CCLI} query kes-period-info --op-cert-file "${pool_opcert_file}" ${NETWORK_IDENTIFIER}); then
println "ERROR" "\n${FG_RED}ERROR${NC}: failed to grab counter from node: [${kes_period_info}]\n" && return 1
fi
if old_counter_nbr=$(awk '/{/,0' <<< "${kes_period_info}" | jq -er '.qKesNodeStateOperationalCertificateNumber' 2>/dev/null); then
Expand Down
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/env
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ node_version="$(${CNODEBIN} version | head -1 | cut -d' ' -f2)"
cli_version="$(${CCLI} version | head -1 | cut -d' ' -f2)"

# TODO: Bump minimum version to 10.1.4 once it has been out in wild for a while
if ! versionCheckNode "10.1.3" "${node_version}" || ! versionCheckNode "10.1.1.0" "${cli_version}"; then
echo -e "\nKoios scripts have now been upgraded to support cardano-node 10.1.3 ('${node_version}' found) / cardano-cli 10.1.x.x ('${cli_version}' found).\nPlease update cardano-node binaries (ensure to read release notes and update various configs using guild-deploy (use appropriate options to download/install/overwrite parts you need) or use tagged branches for older node version (eg: ./<script>.sh -b node-8.9.4 to switch scripts to an older branch).\n\n"
if ! versionCheckNode "10.1.4" "${node_version}" || ! versionCheckNode "10.1.1.0" "${cli_version}"; then
echo -e "\nKoios scripts have now been upgraded to support cardano-node 10.1.4 ('${node_version}' found) / cardano-cli 10.1.x.x ('${cli_version}' found).\nPlease update cardano-node binaries (ensure to read release notes and update various configs using guild-deploy (use appropriate options to download/install/overwrite parts you need) or use tagged branches for older node version (eg: ./<script>.sh -b node-8.9.4 to switch scripts to an older branch).\n\n"
return 1
fi

Expand Down

0 comments on commit 349dffd

Please sign in to comment.