diff --git a/scripts/setup-localnet/get-latest-validator-release-version.sh b/scripts/setup-localnet/get-latest-validator-release-version.sh deleted file mode 100755 index 2d297c917..000000000 --- a/scripts/setup-localnet/get-latest-validator-release-version.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -# fetch the latest solana release version -( - set -e - version=$(node -e \ - 'fetch("https://api.github.com/repos/anza-xyz/agave/releases").then(res => res.json().then(rs => rs.filter(r => !r.prerelease && r.tag_name.startsWith("v1.18."))).then(x => console.log(x[0].tag_name)));' - ) - if [ -z $version ]; then - exit 3 - fi - # Remove the "v" prefix - version=${version#v} - echo $version -) -errorCode=$? -if [ $errorCode -ne 0 ]; then - # Bust the cache with a timestamp if no version could be found. - echo $(date +%s) -fi \ No newline at end of file diff --git a/scripts/setup-localnet/localnet.sh b/scripts/setup-localnet/localnet.sh index 9f0eace8a..39c819b56 100755 --- a/scripts/setup-localnet/localnet.sh +++ b/scripts/setup-localnet/localnet.sh @@ -6,7 +6,7 @@ cpu_struct="linux"; # Clean up first bash "$(dirname -- "$0";)/localnet.down.sh" -container_version=v$(bash $(dirname -- "$0";)/get-latest-validator-release-version.sh) +container_version=v1.18.22 container_name="chainlink-solana.test-validator" echo "Starting $container_name@$container_version" diff --git a/solana.nix b/solana.nix index b84b01b68..23a077ae1 100644 --- a/solana.nix +++ b/solana.nix @@ -6,7 +6,7 @@ # It provides two derivations, one for x86_64-linux and another for aarch64-apple-darwin. # Each derivation downloads the corresponding Solana release. let - version = "v1.99.22"; + version = "v1.18.22"; getBinDerivation = { name, @@ -83,7 +83,6 @@ in mkdir -p $out/bin cp $src/localnet.sh $out/bin/${name} cp $src/localnet.down.sh $out/bin/ - cp $src/get-latest-validator-release-version.sh $out/bin/ chmod +x $out/bin/${name} ''; };