Skip to content

Commit 5185720

Browse files
remove srs from opt-in (Layr-Labs#114)
1 parent 8694b99 commit 5185720

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

holesky/run.sh

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ node_plugin_image="ghcr.io/layr-labs/eigenda/opr-nodeplugin:release-0.6.2"
1313
# To test that try running `docker run --rm --env-file .env busybox /bin/sh -c 'echo $NODE_ECDSA_KEY_PASSWORD'`
1414
# This will output password with single quote. Not sure why this happens.
1515
optIn() {
16-
echo "checking and validating SRS"
17-
../srs_setup.sh
18-
if [ $? -ne 0 ]; then
19-
echo "Error: SRS setup failed. Exiting."
20-
exit 1
21-
fi
2216
echo "using socket: $socket"
2317
docker run --env-file .env \
2418
--rm \

mainnet/run.sh

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ node_plugin_image="ghcr.io/layr-labs/eigenda/opr-nodeplugin:release-0.6.2"
1313
# To test that try running `docker run --rm --env-file .env busybox /bin/sh -c 'echo $NODE_ECDSA_KEY_PASSWORD'`
1414
# This will output password with single quote. Not sure why this happens.
1515
optIn() {
16-
echo "checking and validating SRS"
17-
../srs_setup.sh
18-
if [ $? -ne 0 ]; then
19-
echo "Error: SRS setup failed. Exiting."
20-
exit 1
21-
fi
2216
echo "using socket: $socket"
2317
docker run --env-file .env \
2418
--rm \

srs_setup.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,28 @@
33

44
DOWNLOADED_FILE=false
55
echo "Downloading srs resources"
6-
if ! [ -f ../resources/g1.point ]; then
6+
if ! [ -f ./resources/g1.point ]; then
77
echo "g1.point does not exist."
88
echo "Downloading g1 point. This could take upto 5 minutes"
9-
wget https://srs-mainnet.s3.amazonaws.com/kzg/g1.point --output-document=../resources/g1.point
9+
wget https://srs-mainnet.s3.amazonaws.com/kzg/g1.point --output-document=./resources/g1.point
1010
DOWNLOADED_FILE=true
11+
else
12+
echo "g1.point already exists."
1113
fi
1214

13-
if ! [ -f ../resources/g2.point.powerOf2 ]; then
15+
if ! [ -f ./resources/g2.point.powerOf2 ]; then
1416
echo "g2.point.powerOf2 does not exist."
1517
echo "Downloading g2 point powerOf2. This will take few seconds"
16-
wget https://srs-mainnet.s3.amazonaws.com/kzg/g2.point.powerOf2 --output-document=../resources/g2.point.powerOf2
18+
wget https://srs-mainnet.s3.amazonaws.com/kzg/g2.point.powerOf2 --output-document=./resources/g2.point.powerOf2
1719
DOWNLOADED_FILE=true
20+
else
21+
echo "g2.point.powerOf2 already exists."
1822
fi
1923

2024
# Any time we download the file, validate hashes
2125
if [ "$DOWNLOADED_FILE" = true ]; then
2226
echo "validating hashes of g1 and g2 points This could take upto 5 minutes"
23-
if (cd ../resources && sha256sum -c srssha256sums.txt); then
27+
if (cd ./resources && sha256sum -c srssha256sums.txt); then
2428
echo "Checksums match. Verification successful."
2529
else
2630
echo "Error: Checksums do not match. Exiting."

0 commit comments

Comments
 (0)