mirror of
https://github.com/codex-storage/codex-testnet-starter.git
synced 2025-02-23 07:38:12 +00:00
update
This commit is contained in:
parent
5d15514afc
commit
f2c83e2a60
@ -1,9 +1,5 @@
|
||||
curl -o codex-v0.1.0-linux-amd64.tar.gz -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-v0.1.0-linux-amd64.tar.gz
|
||||
tar -xvzf codex-v0.1.0-linux-amd64.tar.gz
|
||||
|
||||
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-linux-amd64
|
||||
chmod +x codex-v0.1.0-prover-linux-amd64
|
||||
|
||||
|
5
scripts/linux/download_prover.sh
Normal file
5
scripts/linux/download_prover.sh
Normal file
@ -0,0 +1,5 @@
|
||||
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
|
||||
|
@ -10,4 +10,5 @@ LOCALIP="192.168.178.138"
|
||||
|
||||
sleep 5
|
||||
|
||||
curl http://localhost:8080/api/codex/v1/debug/info
|
||||
curl http://localhost:8080/api/codex/v1/debug/info > bootstrap.info
|
||||
|
||||
|
20
scripts/linux/run_client.sh
Normal file
20
scripts/linux/run_client.sh
Normal file
@ -0,0 +1,20 @@
|
||||
LOCALIP=192.168.178.138
|
||||
BOOTSPR=spr:CiUIAhIhAteA6IVIcN3egB_1rPz3HpFKVVO4emfRRcRzvyf0ES11EgIDARo8CicAJQgCEiEC14DohUhw3d6AH_Ws_PcekUpVU7h6Z9FFxHO_J_QRLXUQlcfKswYaCwoJBMCosquRAh-aKkcwRQIhAPzHOsoFmh96SeuFPzErNeck9C-vOkWp74HpddLmM4zLAiBwvbCZDaeMRkmVRVxh24J8OEGGuHFUTWPHAL8T7e8GyQ
|
||||
|
||||
./codex-v0.1.0-prover-linux-amd64 \
|
||||
--data-dir=data_bootstrap \
|
||||
--storage-quota=11811160064 \
|
||||
--nat=${LOCALIP} \
|
||||
--api-port=8080 \
|
||||
--disc-port=8090 \
|
||||
--listen-addrs=/ip4/0.0.0.0/tcp/8070 \
|
||||
--bootstrap-node=${BOOTSPR} \
|
||||
persistence \
|
||||
--eth-private-key=eth.key \
|
||||
--eth-provider=https://rpc.testnet.codex.storage \
|
||||
--marketplace-address=0x4cBDfab37baB0AA3AC69A7b12C4396907dfF5227 \
|
||||
&
|
||||
|
||||
sleep 5
|
||||
|
||||
curl http://localhost:8180/api/codex/v1/debug/info
|
2
scripts/linux/run_storage.sh → scripts/linux/run_host.sh
Executable file → Normal file
2
scripts/linux/run_storage.sh → scripts/linux/run_host.sh
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
LOCALIP=192.168.178.138
|
||||
BOOTSPR="spr:CiUIAhIhA7hDRTkU9Pb_Wt4qdoN_IsRGuDL6bucyvMqbE3F7UmFREgIDARo8CicAJQgCEiEDuENFORT09v9a3ip2g38ixEa4Mvpu5zK8ypsTcXtSYVEQ1uHFswYaCwoJBMCosoqRAh-aKkcwRQIhAKdz-V1ne8GB-QlUmXnA4_EO1WIisy6PPBJDzRRLn02UAiB4QmAVgBgJ94OxnrTo7c_zgsjDJXL_E0_KlBb2KaFzPw"
|
||||
BOOTSPR=$(curl http://localhost:8080/api/codex/v1/spr | cut -d '"' -f4)
|
||||
|
||||
# Quota = 11 GB
|
||||
# Availability = 10 GB
|
@ -1,5 +1,2 @@
|
||||
curl -O -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-v0.1.0-windows-amd64.zip
|
||||
unzip codex-v0.1.0-windows-amd64.zip
|
||||
|
||||
curl -O -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-prover-v0.1.0-windows-amd64.exe.zip
|
||||
unzip codex-prover-v0.1.0-windows-amd64.exe.zip
|
||||
|
2
scripts/windows/download_prover.bat
Normal file
2
scripts/windows/download_prover.bat
Normal file
@ -0,0 +1,2 @@
|
||||
curl -O -L https://github.com/codex-storage/nim-codex/releases/download/v0.1.0/codex-prover-v0.1.0-windows-amd64.exe.zip
|
||||
unzip codex-prover-v0.1.0-windows-amd64.exe.zip
|
21
scripts/windows/run_client.bat
Normal file
21
scripts/windows/run_client.bat
Normal file
@ -0,0 +1,21 @@
|
||||
set LOCALIP="192.168.178.138"
|
||||
set BOOTSPR="spr:CiUIAhIhAteA6IVIcN3egB_1rPz3HpFKVVO4emfRRcRzvyf0ES11EgIDARo8CicAJQgCEiEC14DohUhw3d6AH_Ws_PcekUpVU7h6Z9FFxHO_J_QRLXUQlcfKswYaCwoJBMCosquRAh-aKkcwRQIhAPzHOsoFmh96SeuFPzErNeck9C-vOkWp74HpddLmM4zLAiBwvbCZDaeMRkmVRVxh24J8OEGGuHFUTWPHAL8T7e8GyQ"
|
||||
|
||||
start /b codex-v0.1.0-windows-amd64.exe ^
|
||||
--data-dir=data_bootstrap ^
|
||||
--storage-quota=11811160064 ^
|
||||
--nat=%LOCALIP% ^
|
||||
--api-port=8080 ^
|
||||
--disc-port=8090 ^
|
||||
--listen-addrs=/ip4/0.0.0.0/tcp/8070 ^
|
||||
--bootstrap-node=%BOOTSPR% ^
|
||||
persistence ^
|
||||
--eth-private-key=eth.key ^
|
||||
--eth-provider=https://rpc.testnet.codex.storage ^
|
||||
--marketplace-address=0x4cBDfab37baB0AA3AC69A7b12C4396907dfF5227
|
||||
|
||||
timeout 5
|
||||
|
||||
cls
|
||||
|
||||
curl http://localhost:8080/api/codex/v1/debug/info
|
Loading…
x
Reference in New Issue
Block a user