diff --git a/FORCODEXERS.md b/FORCODEXERS.md index 568b196..62b75a2 100644 --- a/FORCODEXERS.md +++ b/FORCODEXERS.md @@ -3,13 +3,14 @@ Notes for the Codex team members who will be running the workshop. ## Info - Bootstrap NUC IP: 192.168.88.253 - - Bootstrap NUC SPR: + - Bootstrap NUC SPR: spr:CiUIAhIhA7dVYM0xcaXtsXiHmXWN1l2Irg_82sMFC6UochS0u7x2EgIDARo8CicAJQgCEiEDt1VgzTFxpe2xeIeZdY3WXYiuD_zawwULpShyFLS7vHYQ09LpswYaCwoJBMCoWP2RAh-aKkcwRQIhAK38tfXLaKKudMeJq9BEH-uMW0CxJ3lRdY0f1BfuKzZ9AiAwMLy5LijnR0qtne9KgVkjxCQWsqmv3meN9B5rd7yXSA ## Workshop Checklist -Before the workshop starts: +On-site, before the workshop starts: - [ ] Check Menti code and QT code in slides - [ ] Start local wifi network - [ ] Check wifi credentials in slides + - [ ] Check internet access on wifi - [ ] Start bootstrap node on NUC - - [ ] Check bootstrap node SPR against SPR stored in host script on NUC. If changed: UPDATE scripts in this repository quickly! + - [ ] Check bootstrap node SPR against SPR stored in workshop-bootstrapnode.info. If changed: UPDATE scripts in this repository quickly! - [ ] Start host node on NUC diff --git a/scripts/linux/download_prover.sh b/scripts/linux/download_prover.sh index f8657cc..9447a58 100755 --- a/scripts/linux/download_prover.sh +++ b/scripts/linux/download_prover.sh @@ -1,5 +1,4 @@ -curl -o codex-prover-v0.1.0-linux-amd64.zip -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-prover-v0.1.0-linux-amd64.zip -unzip codex-prover-v0.1.0-linux-amd64.zip - -chmod +x codex-v0.1.0-prover-linux-amd64 +curl -o codex-prover-v0.1.0-linux-amd64.tar.gz -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-prover-v0.1.0-linux-amd64.tar.gz +tar -xvzf codex-prover-v0.1.0-linux-amd64.tar.gz +chmod +x codex-prover-v0.1.0-linux-amd64 diff --git a/scripts/linux/run_bootstrap.sh b/scripts/linux/run_bootstrap.sh index 499a67b..7eda7fa 100755 --- a/scripts/linux/run_bootstrap.sh +++ b/scripts/linux/run_bootstrap.sh @@ -1,12 +1,12 @@ ./codex-v0.1.0-linux-amd64 \ --data-dir=data_bootstrap \ --nat=${LOCALIP} \ - --api-port=8080 \ + --api-port=8078 \ --disc-port=8090 \ --listen-addrs=/ip4/0.0.0.0/tcp/8070 \ & sleep 5 -curl http://localhost:8080/api/codex/v1/debug/info > bootstrap.info +curl http://localhost:8078/api/codex/v1/debug/info > bootstrap.info diff --git a/scripts/linux/run_client.sh b/scripts/linux/run_client.sh index 84fcaa3..855ed04 100755 --- a/scripts/linux/run_client.sh +++ b/scripts/linux/run_client.sh @@ -16,6 +16,8 @@ if [ ! -f eth.key ]; then exit 1 fi +BOOTSPR=spr:CiUIAhIhA7dVYM0xcaXtsXiHmXWN1l2Irg_82sMFC6UochS0u7x2EgIDARo8CicAJQgCEiEDt1VgzTFxpe2xeIeZdY3WXYiuD_zawwULpShyFLS7vHYQ09LpswYaCwoJBMCoWP2RAh-aKkcwRQIhAK38tfXLaKKudMeJq9BEH-uMW0CxJ3lRdY0f1BfuKzZ9AiAwMLy5LijnR0qtne9KgVkjxCQWsqmv3meN9B5rd7yXSA + ./codex-v0.1.0-linux-amd64 \ --data-dir=data_client \ --storage-quota=11811160064 \ diff --git a/scripts/linux/run_host.sh b/scripts/linux/run_host.sh index c3b699d..379b5d0 100755 --- a/scripts/linux/run_host.sh +++ b/scripts/linux/run_host.sh @@ -1,9 +1,9 @@ -BOOTSPR=$(curl http://localhost:8080/api/codex/v1/spr | cut -d '"' -f4) +BOOTSPR=$(curl http://localhost:8078/api/codex/v1/spr | cut -d '"' -f4) # Quota = 11 GB # Availability = 10 GB -./codex-v0.1.0-prover-linux-amd64 \ +./codex-prover-v0.1.0-linux-amd64 \ --data-dir=data_host \ --circuit-dir=circuit \ --storage-quota=11811160064 \ diff --git a/scripts/windows/run_bootstrap.bat b/scripts/windows/run_bootstrap.bat index a8c7c5f..5eadaa8 100644 --- a/scripts/windows/run_bootstrap.bat +++ b/scripts/windows/run_bootstrap.bat @@ -1,7 +1,7 @@ start /b codex-v0.1.0-windows-amd64.exe ^ --data-dir=data_bootstrap ^ --nat=%LOCALIP% ^ - --api-port=8080 ^ + --api-port=8078 ^ --disc-port=8090 ^ --listen-addrs=/ip4/0.0.0.0/tcp/8070 @@ -9,4 +9,4 @@ timeout 5 cls -curl http://localhost:8080/api/codex/v1/debug/info +curl http://localhost:8078/api/codex/v1/debug/info diff --git a/scripts/windows/run_client.bat b/scripts/windows/run_client.bat index 10d6e45..e4391e4 100644 --- a/scripts/windows/run_client.bat +++ b/scripts/windows/run_client.bat @@ -1,4 +1,4 @@ -set BOOTSPR="UPDATE ME FROM BOOTSTRAP NODE" +set BOOTSPR="spr:CiUIAhIhA7dVYM0xcaXtsXiHmXWN1l2Irg_82sMFC6UochS0u7x2EgIDARo8CicAJQgCEiEDt1VgzTFxpe2xeIeZdY3WXYiuD_zawwULpShyFLS7vHYQ09LpswYaCwoJBMCoWP2RAh-aKkcwRQIhAK38tfXLaKKudMeJq9BEH-uMW0CxJ3lRdY0f1BfuKzZ9AiAwMLy5LijnR0qtne9KgVkjxCQWsqmv3meN9B5rd7yXSA" start /b codex-v0.1.0-windows-amd64.exe ^ --data-dir=data_client ^ diff --git a/scripts/windows/run_host.bat b/scripts/windows/run_host.bat index 01172b1..509d69f 100644 --- a/scripts/windows/run_host.bat +++ b/scripts/windows/run_host.bat @@ -1,4 +1,4 @@ -set BOOTSPR="UPDATE ME FROM BOOTSTRAP NODE" +set BOOTSPR="spr:CiUIAhIhA7dVYM0xcaXtsXiHmXWN1l2Irg_82sMFC6UochS0u7x2EgIDARo8CicAJQgCEiEDt1VgzTFxpe2xeIeZdY3WXYiuD_zawwULpShyFLS7vHYQ09LpswYaCwoJBMCoWP2RAh-aKkcwRQIhAK38tfXLaKKudMeJq9BEH-uMW0CxJ3lRdY0f1BfuKzZ9AiAwMLy5LijnR0qtne9KgVkjxCQWsqmv3meN9B5rd7yXSA" @REM Quota = 11 GB @REM Availability = 10 GB diff --git a/scripts/workshop-bootstrapnode.info b/scripts/workshop-bootstrapnode.info new file mode 100644 index 0000000..eba6813 --- /dev/null +++ b/scripts/workshop-bootstrapnode.info @@ -0,0 +1,25 @@ +{ + "id": "16Uiu2HAmQzeU7BHbKhjXTG9bB9TqLgCwqcevawzAJ77DD8ckB9R7", + "addrs": [ + "/ip4/0.0.0.0/tcp/8070" + ], + "repo": "data_bootstrap", + "spr": "spr:CiUIAhIhA7dVYM0xcaXtsXiHmXWN1l2Irg_82sMFC6UochS0u7x2EgIDARo8CicAJQgCEiEDt1VgzTFxpe2xeIeZdY3WXYiuD_zawwULpShyFLS7vHYQ09LpswYaCwoJBMCoWP2RAh-aKkcwRQIhAK38tfXLaKKudMeJq9BEH-uMW0CxJ3lRdY0f1BfuKzZ9AiAwMLy5LijnR0qtne9KgVkjxCQWsqmv3meN9B5rd7yXSA", + "announceAddresses": [ + "/ip4/192.168.88.253/tcp/8070" + ], + "table": { + "localNode": { + "nodeId": "112e300c9f476344ee44f3f7fc0591efc3a5336efbb75c47b34980dba0ba2dc8", + "peerId": "16Uiu2HAmQzeU7BHbKhjXTG9bB9TqLgCwqcevawzAJ77DD8ckB9R7", + "record": "(envelope: (publicKey: secp256k1 key (04b75560cd3171a5edb1788799758dd65d88ae0ffcdac3050ba5287214b4bbbc76c3f4f4b72d51da49ec4c8b011c1415bf5e52da2bc76c90e5623f9af4530e5b2b), domain: \"libp2p-peer-record\", payloadType: @[3, 1], payload: @[10, 39, 0, 37, 8, 2, 18, 33, 3, 183, 85, 96, 205, 49, 113, 165, 237, 177, 120, 135, 153, 117, 141, 214, 93, 136, 174, 15, 252, 218, 195, 5, 11, 165, 40, 114, 20, 180, 187, 188, 118, 16, 213, 210, 233, 179, 6, 26, 11, 10, 9, 4, 192, 168, 88, 253, 145, 2, 31, 154], signature: 30440220776E456F7FFEEE3ED6D3FFCE39AF10D9665DC7DC1EA5E5B71407553B3947916C0220187C5932B93BBE0C3DF9E046127E8E5ABE6804AAB28888C5998184EED3E53E9B), data: (peerId: 16Uiu2HAmQzeU7BHbKhjXTG9bB9TqLgCwqcevawzAJ77DD8ckB9R7, seqNo: 1719298389, addresses: @[(address: /ip4/192.168.88.253/udp/8090)]))", + "address": "0.0.0.0:8090", + "seen": false + }, + "nodes": [] + }, + "codex": { + "version": "v0.1.0", + "revision": "6e9bdf1" + } +}