From c928c0430eff9634a90b821eee62517f39246d31 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 5 Feb 2026 09:49:45 +0000 Subject: [PATCH] sancho fix --- scripts/ga/parameter.sh | 6 +++--- start-node.sh | 20 +++++++++----------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/scripts/ga/parameter.sh b/scripts/ga/parameter.sh index 8340efa..fd1bede 100755 --- a/scripts/ga/parameter.sh +++ b/scripts/ga/parameter.sh @@ -56,14 +56,14 @@ PREV_GA_INDEX=$(echo "$GOV_STATE" | jq -r '.PParamUpdate.govActionIx') echo "Previous Protocol Param Change GA: $PREV_GA_TX_HASH#$PREV_GA_INDEX" cardano_cli conway governance action create-protocol-parameters-update \ + --testnet \ --governance-action-deposit $(cardano_cli conway query gov-state | jq -r '.currentPParams.govActionDeposit') \ --deposit-return-stake-verification-key-file $keys_dir/stake.vkey \ --anchor-url "$METADATA_URL" \ --anchor-data-hash "$METADATA_HASH" \ --check-anchor-data \ --constitution-script-hash $SCRIPT_HASH \ - --max-tx-execution-units "(10000000000, 16500000)" \ - --max-block-execution-units "(20000000000, 72000000)" \ + --cost-model-file $project_root/utilities/cost-model.json \ --prev-governance-action-tx-id "$PREV_GA_TX_HASH" \ --prev-governance-action-index "$PREV_GA_INDEX" \ --out-file "$tx_cert_path" @@ -89,4 +89,4 @@ cardano_cli conway transaction sign \ # Submit the transaction echo "Submitting transaction" -cardano_cli conway transaction submit --tx-file $tx_signed_path +# cardano_cli conway transaction submit --tx-file $tx_signed_path diff --git a/start-node.sh b/start-node.sh index 1e52ba8..9010610 100755 --- a/start-node.sh +++ b/start-node.sh @@ -132,7 +132,7 @@ select connection_type in "${connection_options[@]}"; do done # Define the list of available networks -available_networks=("mainnet" "preprod" "preview" "sanchonet-pig" "sanchonet-chicken") +available_networks=("mainnet" "preprod" "preview" "sanchonet") # If user selected external node configuration @@ -233,7 +233,7 @@ echo echo -e "${CYAN}Setting up Docker node...${NC}" # Define the list of available node versions -available_versions=( "10.5.3" "10.5.1") +available_versions=( "10.5.3" "10.5.1" "10.6.1") # Initialize variables to avoid unbound variable errors network="" @@ -282,12 +282,12 @@ else done fi -# Normalize network name for directory/container naming -# sanchonet-pig and sanchonet-chicken both normalize to sanchonet -network_normalized="$network" -if [ "$network" = "sanchonet-pig" ] || [ "$network" = "sanchonet-chicken" ]; then - network_normalized="sanchonet" -fi +# # Normalize network name for directory/container naming +# # sanchonet-pig and sanchonet-chicken both normalize to sanchonet +# network_normalized="$network" +# if [ "$network" = "sanchonet-pig" ] || [ "$network" = "sanchonet-chicken" ]; then +# network_normalized="sanchonet" +# fi # Function to assign a unique port based on version # This ensures different versions on the same network use different ports @@ -395,10 +395,8 @@ dumps_dir="$base_dir/dumps/$network_normalized" utilities_dir="$base_dir/utilities" # Base URL for node config files -if [ "$network" = "sanchonet-pig" ] || [ "$network" = "sanchonet-chicken" ]; then +if [ "$network" = "sanchonet" ]; then config_base_url="https://raw.githubusercontent.com/Hornan7/SanchoNet-Tutorials/refs/heads/main/genesis/" -else - config_base_url="https://book.play.dev.cardano.org/environments/$network/" fi # Function to create a directory if it doesn't exist