Skip to content

Commit a584986

Browse files
committed
Mainnet Conway - node 9.0.0
# Mainnet Release for Conway-Era and Cardano-Node 9.0.0 NOTICE-1: For Ledger HW-Wallet users, at the time of the commit, the Cardano-App 7.1.x for Ledger release was still pending. However, you can load it anyway via Ledger-Live by going into the Settings -> Experimental Features -> My Ledger Provider = 3 NOTICE-2: This commit is only a subset of updated scripts for conway era. The governance scripts (starting with 2*.sh) will be published into the mainnet folder once the light-mode is also working with koios support. Some of the changes: - Min. Node- and CLI-Version is now 9.0.0 - The requirement for 'curl' is removed in offline-mode - The currentEpoch offline calculation was corrected to support unusual byron-era epoch/slot lengths - The currentSlot/Tip offline calculation was corrected to support unusual byron-era epoch/slot lengths - Parameter Support added for .coinsPerUTxOByte - Added offline support for governance - 01_clainRewards.sh updated fee calculation - 01_protectKey.sh can encrypt/decrypt DRep and CC-Hot/CC-Cold keys - 01_queryAddress.sh now shows a DRep delegation for stake accounts - 01_sendAssets.sh updated fee calculation - 01_sendLovelaves.sh updated fee calculation - 01_workOffline.sh now supports DRep entries and takes care of last action IDs and the constitution values - 03b_regStakingAddrCert.sh now also signs the tx with the staking.skey, thats a new requirement for conway-era - 03c_checkStakingAddrOnChain.sh now also shows a DRep delegation - 04e_checkNodeOpCert.sh added errorcheck for onDiekKESStart - 05c_regStakepoolCert.sh enhanced error message if there is no xxx.pool.json file present - 05c_regStakepoolCert.sh updated fee calculation - 06_regDelegationCert.sh updated fee calculation - 07b_deregStakepoolCert.sh updated fee calculation - 08b_deregStakingAddrCert.sh udpated fee calculation - 09a_catalystVoteF10.sh was removed, the normal 09a_catalystVote.sh can be used - 11a_mintAsset.sh updated fee calculation - 11b_burnAsset.sh updated fee calculation - 12b_checkAssetMetaServer.sh better error handling if there was no data found on the metadata server - 13a_spoPoll.sh and 13b_sendSpoPoll.sh was removed, will be done via governance info-actions in the future - cardano-signer version bumped to v1.16.1 - README.md updated with the new minimum versions
1 parent eb49587 commit a584986

39 files changed

+902
-1669
lines changed

cardano/mainnet/00_common.sh

+109-59
Large diffs are not rendered by default.

cardano/mainnet/01_claimRewards.sh

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22

3-
# Script is brought to you by ATADA Stakepool, Telegram @atada_stakepool
3+
############################################################
4+
# _____ ____ ____ _____ _ __
5+
# / ___// __ \/ __ \ / ___/__________(_)___ / /______
6+
# \__ \/ /_/ / / / / \__ \/ ___/ ___/ / __ \/ __/ ___/
7+
# ___/ / ____/ /_/ / ___/ / /__/ / / / /_/ / /_(__ )
8+
# /____/_/ \____/ /____/\___/_/ /_/ .___/\__/____/
9+
# /_/
10+
#
11+
# Scripts are brought to you by Martin L. (ATADA Stakepool)
12+
# Telegram: @atada_stakepool Github: github.com/gitmachtl
13+
#
14+
############################################################
415

516
#load variables and functions from common.sh
617
. "$(dirname "$0")"/00_common.sh
@@ -554,10 +565,11 @@ if [[ ${rxcnt} == 1 ]]; then
554565
${cardanocli} ${cliEra} transaction build-raw ${txInString} --tx-out "${sendFromAddr}+${totalLovelaces}${assetsOutString}" --tx-out ${sendToAddr}+${rewardsSum} --invalid-hereafter ${ttl} --fee 200000 ${metafileParameter} --withdrawal ${withdrawal} --out-file ${txBodyFile}
555566
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
556567
fi
557-
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --tx-in-count ${txcnt} --tx-out-count ${rxcnt} --witness-count 2 | awk '{ print $1 }')
558568

559-
#cardano-cli new fee calculation
560-
#fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 2 | awk '{ print $1 }')
569+
#calculate the transaction fee. new parameters since cardano-cli 8.21.0
570+
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 2 --reference-script-size 0 2> /dev/stdout)
571+
if [ $? -ne 0 ]; then echo -e "\n\e[35m${fee}\e[0m\n"; exit 1; fi
572+
fee=${fee%% *} #only get the first part of 'xxxxxx Lovelaces'
561573

562574
echo -e "\e[0mMimimum transfer Fee for ${txcnt}x TxIn & ${rxcnt}x TxOut & Withdrawal: \e[32m $(convertToADA ${fee}) ADA / ${fee} lovelaces \e[90m"
563575

cardano/mainnet/01_protectKey.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22

3-
# Script is brought to you by ATADA Stakepool, Telegram @atada_stakepool
3+
############################################################
4+
# _____ ____ ____ _____ _ __
5+
# / ___// __ \/ __ \ / ___/__________(_)___ / /______
6+
# \__ \/ /_/ / / / / \__ \/ ___/ ___/ / __ \/ __/ ___/
7+
# ___/ / ____/ /_/ / ___/ / /__/ / / / /_/ / /_(__ )
8+
# /____/_/ \____/ /____/\___/_/ /_/ .___/\__/____/
9+
# /_/
10+
#
11+
# Scripts are brought to you by Martin L. (ATADA Stakepool)
12+
# Telegram: @atada_stakepool Github: github.com/gitmachtl
13+
#
14+
############################################################
415

516
#load variables and functions from common.sh
617
. "$(dirname "$0")"/00_common.sh
@@ -16,6 +27,9 @@ Usage: $(basename $0) <ENC|ENCRYPT|DEC|DECRYPT> <Name of SKEY-File>
1627
Example: $(basename $0) enc mywallet ... Encrypts the mywallet.skey file
1728
$(basename $0) enc owner.payment ... Encrypts the owner.payment.skey file
1829
$(basename $0) enc mypool.node.skey ... Encrypts the mypool.node.skey file
30+
$(basename $0) enc mydrep.drep ... Encrypts the mydrep.drep.skey file
31+
$(basename $0) enc mycom.cc-hot.skey ... Encrypts the mycom.cc-hot.skey file
32+
1933
2034
$(basename $0) dec mywallet ... Decrypts the mywallet.skey file
2135
$(basename $0) dec owner.staking ... Decrypts the owner.staking.skey file

cardano/mainnet/01_queryAddress.sh

+50-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22

3-
# Script is brought to you by ATADA Stakepool, Telegram @atada_stakepool
3+
############################################################
4+
# _____ ____ ____ _____ _ __
5+
# / ___// __ \/ __ \ / ___/__________(_)___ / /______
6+
# \__ \/ /_/ / / / / \__ \/ ___/ ___/ / __ \/ __/ ___/
7+
# ___/ / ____/ /_/ / ___/ / /__/ / / / /_/ / /_(__ )
8+
# /____/_/ \____/ /____/\___/_/ /_/ .___/\__/____/
9+
# /_/
10+
#
11+
# Scripts are brought to you by Martin L. (ATADA Stakepool)
12+
# Telegram: @atada_stakepool Github: github.com/gitmachtl
13+
#
14+
############################################################
415

516
#load variables and functions from common.sh
617
. "$(dirname "$0")"/00_common.sh
@@ -227,6 +238,8 @@ elif [[ ${typeOfAddr} == ${addrTypeStake} ]]; then #Staking Address
227238

228239
esac
229240

241+
# jq -r . <<< ${rewardsJSON}
242+
230243
rewardsEntryCnt=$(jq -r 'length' <<< ${rewardsJSON})
231244

232245
if [[ ${rewardsEntryCnt} == 0 ]]; then echo -e "\e[35mStaking Address is not on the chain, register it first !\e[0m\n"; exit 1;
@@ -242,6 +255,8 @@ elif [[ ${typeOfAddr} == ${addrTypeStake} ]]; then #Staking Address
242255

243256
delegationPoolID=$(jq -r ".[${tmpCnt}].delegation // .[${tmpCnt}].stakeDelegation" <<< ${rewardsJSON})
244257

258+
drepDelegationHASH=$(jq -r ".[${tmpCnt}].voteDelegation // \"notSet\"" <<< ${rewardsJSON})
259+
245260
rewardsSum=$((${rewardsSum}+${rewardsAmount}))
246261
rewardsSumInADA=$(bc <<< "scale=6; ${rewardsSum} / 1000000")
247262

@@ -295,6 +310,40 @@ elif [[ ${typeOfAddr} == ${addrTypeStake} ]]; then #Staking Address
295310

296311
fi
297312

313+
#Show the current status of the voteDelegation
314+
case ${drepDelegationHASH} in
315+
"alwaysNoConfidence")
316+
#always-no-confidence
317+
echo -e " \t\e[0mVoting-Power of Staking Address is currently set to: \e[94mALWAYS NO CONFIDENCE\e[0m\n";
318+
;;
319+
320+
"alwaysAbstain")
321+
#always-abstain
322+
echo -e " \t\e[0mVoting-Power of Staking Address is currently set to: \e[94mALWAYS ABSTAIN\e[0m\n";
323+
;;
324+
325+
"notSet")
326+
#no votingpower delegated
327+
echo -e " \t\e[0mVoting-Power of Staking Address is not delegated to a DRep !\e[0m\n";
328+
;;
329+
330+
*)
331+
#normal drep-id or drep-script-id
332+
case "${drepDelegationHASH%%-*}" in
333+
"keyHash") drepDelegationID=$(${bech32_bin} "drep" <<< "${drepDelegationHASH##*-}" 2> /dev/null)
334+
echo -e " \t\e[0mVoting-Power of Staking Address is delegated to DRepID(HASH): \e[32m${drepDelegationID}\e[0m (\e[94m${drepDelegationHASH##*-}\e[0m)\n";
335+
;;
336+
"scriptHash") drepDelegationID=$(${bech32_bin} "drep_script" <<< "${drepDelegationHASH##*-}" 2> /dev/null)
337+
echo -e " \t\e[0mVoting-Power of Staking Address is delegated to DRep-Script-ID(HASH): \e[32m${drepDelegationID}\e[0m (\e[94m${drepDelegationHASH##*-}\e[0m)\n";
338+
;;
339+
*) #unknown type
340+
echo -e " \t\e[0mVoting-Power of Staking Address is delegated to DRep-HASH: \e[32m${drepDelegationHASH}\e[0m\n";
341+
;;
342+
esac
343+
;;
344+
345+
esac
346+
298347
echo
299348

300349
done

cardano/mainnet/01_sendAssets.sh

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22

3-
# Script is brought to you by ATADA Stakepool, Telegram @atada_stakepool
3+
############################################################
4+
# _____ ____ ____ _____ _ __
5+
# / ___// __ \/ __ \ / ___/__________(_)___ / /______
6+
# \__ \/ /_/ / / / / \__ \/ ___/ ___/ / __ \/ __/ ___/
7+
# ___/ / ____/ /_/ / ___/ / /__/ / / / /_/ / /_(__ )
8+
# /____/_/ \____/ /____/\___/_/ /_/ .___/\__/____/
9+
# /_/
10+
#
11+
# Scripts are brought to you by Martin L. (ATADA Stakepool)
12+
# Telegram: @atada_stakepool Github: github.com/gitmachtl
13+
#
14+
############################################################
415

516
#load variables and functions from common.sh
617
. "$(dirname "$0")"/00_common.sh
@@ -662,13 +673,14 @@ if [[ ${lovelacesToSend} -lt ${minOutUTXO} ]]; then lovelacesToSend=${minOutUTXO
662673
txBodyFile="${tempDir}/dummy.txbody"
663674
rm ${txBodyFile} 2> /dev/null
664675
dummyReturnAmount=$(( ${totalLovelaces} - ${lovelacesToSend} ))
665-
${cardanocli} ${cliEra} transaction build-raw ${txInString} --tx-out "${sendToAddr}+${lovelacesToSend}${assetsSendString}" --tx-out "${sendToAddr}+${dummyReturnAmount}${assetsReturnString}" --invalid-hereafter ${ttl} --fee 200000 ${metafileParameter} --out-file ${txBodyFile}
666-
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
667-
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --tx-in-count ${txcnt} --tx-out-count ${rxcnt} --witness-count 1 | awk '{ print $1 }')
668-
#cardano-cli new fee calculation
669-
#fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 1 | awk '{ print $1 }')
676+
${cardanocli} ${cliEra} transaction build-raw ${txInString} --tx-out "${sendToAddr}+${lovelacesToSend}${assetsSendString}" --tx-out "${sendFromAddr}+${dummyReturnAmount}${assetsReturnString}" --invalid-hereafter ${ttl} --fee 200000 ${metafileParameter} --out-file ${txBodyFile}
670677
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
671678

679+
#calculate the transaction fee. new parameters since cardano-cli 8.21.0
680+
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 1 --reference-script-size 0 2> /dev/stdout)
681+
if [ $? -ne 0 ]; then echo -e "\n\e[35m${fee}\e[0m\n"; exit 1; fi
682+
fee=${fee%% *} #only get the first part of 'xxxxxx Lovelaces'
683+
672684
echo -e "\e[0mMinimum Transaction Fee for ${txcnt}x TxIn & ${rxcnt}x TxOut: \e[32m $(convertToADA ${fee}) ADA / ${fee} lovelaces \e[90m"
673685
#
674686
# Set the right amount of lovelacesToSend, lovelacesToReturn and also check about sendinglimits like minOutUTXO for returning assets if available

cardano/mainnet/01_sendLovelaces.sh

+27-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22

3-
# Script is brought to you by ATADA Stakepool, Telegram @atada_stakepool
3+
############################################################
4+
# _____ ____ ____ _____ _ __
5+
# / ___// __ \/ __ \ / ___/__________(_)___ / /______
6+
# \__ \/ /_/ / / / / \__ \/ ___/ ___/ / __ \/ __/ ___/
7+
# ___/ / ____/ /_/ / ___/ / /__/ / / / /_/ / /_(__ )
8+
# /____/_/ \____/ /____/\___/_/ /_/ .___/\__/____/
9+
# /_/
10+
#
11+
# Scripts are brought to you by Martin L. (ATADA Stakepool)
12+
# Telegram: @atada_stakepool Github: github.com/gitmachtl
13+
#
14+
############################################################
415

516
#load variables and functions from common.sh
617
. "$(dirname "$0")"/00_common.sh
@@ -413,7 +424,7 @@ fi
413424

414425
#Read ProtocolParameters
415426
case ${workMode} in
416-
"online") protocolParametersJSON=$(${cardanocli} ${cliEra} query protocol-parameters);; #onlinemode
427+
"online") protocolParametersJSON=$(${cardanocli} ${cliEra} query protocol-parameters );; #onlinemode
417428
"light") protocolParametersJSON=${lightModeParametersJSON};; #lightmode
418429
"offline") protocolParametersJSON=$(jq ".protocol.parameters" <<< ${offlineJSON});; #offlinemode
419430
esac
@@ -434,6 +445,7 @@ case "${lovelacesToSend}" in
434445
rxcnt=2; #assets on the address, they must be sent back to the source
435446
dummySendAmount="${totalLovelaces}"
436447
dummyReturnAmount=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendToAddr}+1000000${assetsOutString}")
448+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
437449
else
438450
rxcnt=1; #no assets on the address
439451
fi;;
@@ -459,16 +471,15 @@ if [[ ${rxcnt} == 1 ]]; then #Sending ALLFUNDS or sending ALL lovelaces and no
459471
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
460472
else #Sending chosen amount of lovelaces or ALL lovelaces but return the assets to the address
461473
#a fee of 200000 lovelaces was choosen to produce a 5byte cbor representation, like any value between 65536 and 4294967296 lovelaces
462-
${cardanocli} ${cliEra} transaction build-raw ${txInString} --tx-out "${sendToAddr}+${dummyReturnAmount}${assetsOutString}" --tx-out ${sendToAddr}+${dummySendAmount} --invalid-hereafter ${ttl} --fee 200000 ${metafileParameter} --out-file ${txBodyFile}
474+
${cardanocli} ${cliEra} transaction build-raw ${txInString} --tx-out "${sendFromAddr}+${dummyReturnAmount}${assetsOutString}" --tx-out "${sendToAddr}+${dummySendAmount}" --invalid-hereafter ${ttl} --fee 200000 ${metafileParameter} --out-file ${txBodyFile}
463475
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
464476
fi
465477

466-
#cardano-cli 8.17 and below
467-
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --tx-in-count ${txcnt} --tx-out-count ${rxcnt} --witness-count 1 | awk '{ print $1 }')
478+
#calculate the transaction fee. new parameters since cardano-cli 8.21.0
479+
fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 1 --reference-script-size 0 2> /dev/stdout)
480+
if [ $? -ne 0 ]; then echo -e "\n\e[35m${fee}\e[0m\n"; exit 1; fi
481+
fee=${fee%% *} #only get the first part of 'xxxxxx Lovelaces'
468482

469-
#cardano-cli with the new fee calculation
470-
#fee=$(${cardanocli} ${cliEra} transaction calculate-min-fee --tx-body-file ${txBodyFile} --protocol-params-file <(echo ${protocolParametersJSON}) --witness-count 1 | awk '{ print $1 }')
471-
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
472483

473484
echo -e "\e[0mMinimum Transaction Fee for ${txcnt}x TxIn & ${rxcnt}x TxOut: \e[32m $(convertToADA ${fee}) ADA / ${fee} lovelaces \e[90m"
474485
echo
@@ -482,6 +493,7 @@ case "${lovelacesToSend}" in
482493
"ALLFUNDS" ) #If keyword ALLFUNDS was used, send all lovelaces and all assets to the destination address - rxcnt=1
483494
lovelacesToSend=$(( ${totalLovelaces} - ${fee} ))
484495
minOutUTXO=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendToAddr}+1000000${assetsOutString}")
496+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
485497
echo -e "\e[0mLovelaces to send to ${showToAddr}: \e[33m ${lovelacesToSend} lovelaces \e[90m"
486498
if [[ ${lovelacesToSend} -lt ${minOutUTXO} ]]; then echo -e "\e[35mNot enough funds on the source Addr! Minimum UTXO value is ${minOutUTXO} lovelaces.\e[0m"; exit 1; fi
487499
if [[ ${totalAssetsCnt} -gt 0 ]]; then #assets are also send completly over, so display them
@@ -501,6 +513,7 @@ case "${lovelacesToSend}" in
501513
if [[ ${totalAssetsCnt} -gt 0 ]]; then
502514
#assets on the address, they must be sent back to the source address with the minOutUTXO amount of lovelaces, rxcnt=2
503515
minOutUTXO=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendFromAddr}+1000000${assetsOutString}")
516+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
504517
lovelacesToSend=$(( ${totalLovelaces} - ${fee} - ${minOutUTXO} )) #so send less over to
505518
lovelacesToReturn=${minOutUTXO} #minimum amount to return all the assets to the source address
506519
echo -e "\e[0mLovelaces to send to ${showToAddr}: \e[33m $(convertToADA ${lovelacesToSend}) ADA / ${lovelacesToSend} lovelaces \e[90m"
@@ -509,13 +522,15 @@ case "${lovelacesToSend}" in
509522
else
510523
#no assets on the address, so just send over all the lovelaces, rxcnt=1
511524
minOutUTXO=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendToAddr}+1000000")
525+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
512526
lovelacesToSend=$(( ${totalLovelaces} - ${fee} ))
513527
echo -e "\e[0mLovelaces to send to ${showToAddr}: \e[33m $(convertToADA ${lovelacesToSend}) ADA / ${lovelacesToSend} lovelaces \e[90m"
514528
if [[ ${lovelacesToSend} -lt ${minOutUTXO} ]]; then echo -e "\e[35mNot enough funds on the source Addr! Minimum UTXO value is ${minOutUTXO} lovelaces.\e[0m"; exit 1; fi
515529
fi;;
516530

517531
"MIN" ) #If keyword MIN was used, send just the minimal possible amount of lovelces to the destination address, rest will be returned to the source address, rxcnt=2
518532
minOutUTXO=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendToAddr}+1000000")
533+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
519534
lovelacesToSend=${minOutUTXO}
520535
echo -e "\e[0mLovelaces to send to ${showToAddr}: \e[33m $(convertToADA ${lovelacesToSend}) ADA / ${lovelacesToSend} lovelaces \e[90m"
521536
lovelacesToReturn=$(( ${totalLovelaces} - ${fee} - ${lovelacesToSend} ))
@@ -529,6 +544,7 @@ case "${lovelacesToSend}" in
529544

530545
* ) #If no keyword was used, its just the amount of lovelacesToSend to the destination address, rest will be returned to the source address, rxcnt=2
531546
minOutUTXO=$(calc_minOutUTXO "${protocolParametersJSON}" "${sendToAddr}+1000000")
547+
checkError "$?"; if [ $? -ne 0 ]; then exit $?; fi
532548
echo -e "\e[0mLovelaces to send to ${showToAddr}: \e[33m $(convertToADA ${lovelacesToSend}) ADA / ${lovelacesToSend} lovelaces \e[90m"
533549
if [[ ${lovelacesToSend} -lt ${minOutUTXO} ]]; then echo -e "\e[35mNot enough lovelaces to send to the destination! Minimum UTXO value is ${minOutUTXO} lovelaces.\e[0m"; exit 1; fi
534550
lovelacesToReturn=$(( ${totalLovelaces} - ${fee} - ${lovelacesToSend} ))
@@ -569,6 +585,9 @@ rm ${txFile} 2> /dev/null
569585
#If payment address is a hardware wallet, use the cardano-hw-cli for the signing
570586
if [[ -f "${fromAddr}.hwsfile" ]]; then
571587

588+
# #remove the tag(258) from the txBodyFile
589+
# sed -si 's/00d901028182/008182/g' "${txBodyFile}"
590+
572591
echo -ne "\e[0mAutocorrect the TxBody for canonical order: "
573592
tmp=$(autocorrect_TxBodyFile "${txBodyFile}"); if [ $? -ne 0 ]; then echo -e "\e[35m${tmp}\e[0m\n\n"; exit 1; fi
574593
echo -e "\e[32m${tmp}\e[90m\n"

0 commit comments

Comments
 (0)