You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -323,7 +327,7 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
323
327
if [[ "${magicparam}"==""||${addrformat}==""||${byronToShelleyEpochs}=="" ]];then majorError "The 'magicparam', 'addrformat' or 'byronToShelleyEpochs' is not set!\nOr maybe you have set the wrong parameter network=\"${network}\" ?\nList of preconfigured network-names: ${networknames}";exit 1;fi
324
328
325
329
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
326
-
minCliVersion="10.9.0"#minimum allowed cli version for this script-collection version
330
+
minCliVersion="10.12.0"#minimum allowed cli version for this script-collection version
327
331
maxCliVersion="99.99.9"#maximum allowed cli version, 99.99.9 = no limit so far
328
332
minNodeVersion="10.3.1"#minimum allowed node version for this script-collection version
329
333
maxNodeVersion="99.99.9"#maximum allowed node version, 99.99.9 = no limit so far
@@ -1199,7 +1203,8 @@ convert_actionBech2UTXO() {
1199
1203
if [[ "${govActionBech}"!="gov_action1"* ]];thenexit 1;fi
1200
1204
local govActionBechHex=$(${bech32_bin}<<<"${govActionBech}"2> /dev/null)
1201
1205
local govActionUTXO=${govActionBechHex:0:64}
1202
-
local govActionIdx=$(bc <<<"obase=10;ibase=16;${govActionBechHex:64}")
1206
+
local govActionIdxHex=${govActionBechHex:64}
1207
+
local govActionIdx=$(bc <<<"obase=10;ibase=16;${govActionIdxHex^^}")
Copy file name to clipboardExpand all lines: cardano/mainnet/24a_genVote.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -307,7 +307,8 @@ case ${workMode} in
307
307
308
308
#Get the alwaysNoConfidence stake power (counts as a no-power in all actions, except the NoConfidence-Action, there it counts to the yes-power)
309
309
dRepStakeDistributionJSON=$(${cardanocli}${cliEra} query drep-stake-distribution --all-dreps 2> /dev/stdout)#only used for the dRepPowerAlwaysNoConfidence calculation
dRepPowerAlwaysNoConfidence=$(jq -r '."drep-alwaysNoConfidence" // 0'<<<"${dRepStakeDistributionJSON}"2> /dev/null)#changed with cli 10.11.x.x or so, was an array before
311
312
312
313
#Get new Pool Stake Distribution including default delgation, for quorum calculation later on - available with this command since cli 10.2.0.0
Copy file name to clipboardExpand all lines: cardano/mainnet/24c_queryVote.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -352,7 +352,7 @@ case ${workMode} in
352
352
353
353
#Get the alwaysNoConfidence stake power (counts as a no-power in all actions, except the NoConfidence-Action, there it counts to the yes-power)
354
354
dRepStakeDistributionJSON=$(${cardanocli}${cliEra} query drep-stake-distribution --all-dreps 2> /dev/stdout)#only used for the dRepPowerAlwaysNoConfidence calculation
dRepPowerAlwaysNoConfidence=$(jq -r '."drep-alwaysNoConfidence"// 0'<<<"${dRepStakeDistributionJSON}"2> /dev/null)#changed with cli 10.11.x.x or so, was an array before
356
356
357
357
#Get new Pool Stake Distribution including default delgation, for quorum calculation later on - available with this command since cli 10.2.0.0
@@ -323,7 +327,7 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
323
327
if [[ "${magicparam}"==""||${addrformat}==""||${byronToShelleyEpochs}=="" ]];then majorError "The 'magicparam', 'addrformat' or 'byronToShelleyEpochs' is not set!\nOr maybe you have set the wrong parameter network=\"${network}\" ?\nList of preconfigured network-names: ${networknames}";exit 1;fi
324
328
325
329
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
326
-
minCliVersion="10.9.0"#minimum allowed cli version for this script-collection version
330
+
minCliVersion="10.12.0"#minimum allowed cli version for this script-collection version
327
331
maxCliVersion="99.99.9"#maximum allowed cli version, 99.99.9 = no limit so far
328
332
minNodeVersion="10.3.1"#minimum allowed node version for this script-collection version
329
333
maxNodeVersion="99.99.9"#maximum allowed node version, 99.99.9 = no limit so far
@@ -1199,7 +1203,8 @@ convert_actionBech2UTXO() {
1199
1203
if [[ "${govActionBech}"!="gov_action1"* ]];thenexit 1;fi
1200
1204
local govActionBechHex=$(${bech32_bin}<<<"${govActionBech}"2> /dev/null)
1201
1205
local govActionUTXO=${govActionBechHex:0:64}
1202
-
local govActionIdx=$(bc <<<"obase=10;ibase=16;${govActionBechHex:64}")
1206
+
local govActionIdxHex=${govActionBechHex:64}
1207
+
local govActionIdx=$(bc <<<"obase=10;ibase=16;${govActionIdxHex^^}")
Copy file name to clipboardExpand all lines: cardano/testnet/24a_genVote.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -307,7 +307,8 @@ case ${workMode} in
307
307
308
308
#Get the alwaysNoConfidence stake power (counts as a no-power in all actions, except the NoConfidence-Action, there it counts to the yes-power)
309
309
dRepStakeDistributionJSON=$(${cardanocli}${cliEra} query drep-stake-distribution --all-dreps 2> /dev/stdout)#only used for the dRepPowerAlwaysNoConfidence calculation
dRepPowerAlwaysNoConfidence=$(jq -r '."drep-alwaysNoConfidence" // 0'<<<"${dRepStakeDistributionJSON}"2> /dev/null)#changed with cli 10.11.x.x or so, was an array before
311
312
312
313
#Get new Pool Stake Distribution including default delgation, for quorum calculation later on - available with this command since cli 10.2.0.0
Copy file name to clipboardExpand all lines: cardano/testnet/24c_queryVote.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -352,7 +352,7 @@ case ${workMode} in
352
352
353
353
#Get the alwaysNoConfidence stake power (counts as a no-power in all actions, except the NoConfidence-Action, there it counts to the yes-power)
354
354
dRepStakeDistributionJSON=$(${cardanocli}${cliEra} query drep-stake-distribution --all-dreps 2> /dev/stdout)#only used for the dRepPowerAlwaysNoConfidence calculation
dRepPowerAlwaysNoConfidence=$(jq -r '."drep-alwaysNoConfidence"// 0'<<<"${dRepStakeDistributionJSON}"2> /dev/null)#changed with cli 10.11.x.x or so, was an array before
356
356
357
357
#Get new Pool Stake Distribution including default delgation, for quorum calculation later on - available with this command since cli 10.2.0.0
0 commit comments