diff --git a/scripts/cnode-helper-scripts/cntools.library b/scripts/cnode-helper-scripts/cntools.library index 3d25bd931..70589226b 100644 --- a/scripts/cnode-helper-scripts/cntools.library +++ b/scripts/cnode-helper-scripts/cntools.library @@ -18,6 +18,7 @@ CNTOOLS_MINOR_VERSION=1 CNTOOLS_PATCH_VERSION=0 CNTOOLS_VERSION="${CNTOOLS_MAJOR_VERSION}.${CNTOOLS_MINOR_VERSION}.${CNTOOLS_PATCH_VERSION}" +DUMMYFEE=20000 ############################################################ # Default config values # @@ -2074,7 +2075,7 @@ registerStakeWallet() { "${script_args[@]}" --tx-out "${base_addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${stake_cert_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2200,7 +2201,7 @@ deregisterStakeWallet() { "${script_args[@]}" --tx-out "${base_addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${stake_dereg_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2327,7 +2328,7 @@ sendAssets() { ${tx_in} "${script_args[@]}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} ${metafile_param} --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2479,7 +2480,7 @@ delegate() { "${script_args[@]}" --tx-out "${base_addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${pool_delegcert_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2598,7 +2599,7 @@ withdrawRewards() { --tx-out "${base_addr}+0${assets_tx_out}" --withdrawal ${reward_addr}+${reward_lovelace} --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2722,7 +2723,7 @@ registerPool() { "${script_args[@]}" --tx-out "${base_addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${pool_regcert_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -2874,7 +2875,7 @@ modifyPool() { "${script_args[@]}" --tx-out "${base_addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${pool_regcert_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -3022,7 +3023,7 @@ deRegisterPool() { "${script_args[@]}" --tx-out "${addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --certificate-file "${pool_deregcert_file}" --out-file "${TMP_DIR}"/tx0.tmp ) @@ -3258,7 +3259,7 @@ sendMetadata() { "${script_args[@]}" --tx-out "${addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} ${metafile_param} --out-file "${TMP_DIR}"/tx0.tmp ) @@ -3382,7 +3383,7 @@ mintAsset() { --mint-script-file "${policy_script_file}" ${metafile_param} --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --out-file "${TMP_DIR}"/tx0.tmp ) @@ -3514,7 +3515,7 @@ burnAsset() { --mint-script-file "${policy_script_file}" ${metafile_param} --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} --out-file "${TMP_DIR}"/tx0.tmp ) @@ -3618,7 +3619,6 @@ calcMinFee() { --tx-body-file "$1" --tx-in-count $2 --tx-out-count $3 - ${NETWORK_IDENTIFIER} --witness-count $4 --byron-witness-count 0 --protocol-params-file "${TMP_DIR}"/protparams.json @@ -4028,7 +4028,7 @@ submitPoll() { "${script_args[@]}" --tx-out "${addr}+0${assets_tx_out}" --invalid-hereafter ${ttl} - --fee 0 + --fee ${DUMMYFEE} ${metafile_param} --required-signer-hash "${POOL_ID_HASH}" --out-file "${TMP_DIR}"/tx0.tmp