Giuliano Mega e159351c16
Misc fixes to scripts (#33)
* use Windows convention for batch file newline

* remove utils.bat as function definitions were not being exported

* add permissive CORS (for UI) and longer default TTL

* bump to 0.1.5

* add workaround for antivirus webshield

* update missing refs to 0.1.5

* Add .gitattributes

* Update Codex version to the v0.1.6 release

---------

Co-authored-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-10-08 13:22:49 +03:00

33 lines
933 B
Bash
Executable File

# Start script for storage node on local network NUC
BOOTSPR=$(curl http://localhost:8078/api/codex/v1/spr | cut -d '"' -f4)
# Quota = 11 GB
# Availability = 10 GB
./codex-prover-v0.1.3-linux-amd64 \
--data-dir=data_host \
--circuit-dir=circuit \
--storage-quota=11811160064 \
--nat=192.168.88.253 \
--api-port=8180 \
--disc-port=8190 \
--listen-addrs=/ip4/0.0.0.0/tcp/8170 \
--bootstrap-node=${BOOTSPR} \
persistence \
--eth-private-key=eth.key \
--eth-provider=https://rpc.testnet.codex.storage \
--marketplace-address=0xfE822Df439d987849a90B64a4C0e26a297DBD47F \
prover \
&
sleep 30
curl http://localhost:8180/api/codex/v1/debug/info
sleep 5
curl --request POST --url http://localhost:8180/api/codex/v1/sales/availability --header "Content-Type: application/json" --data "{\"totalSize\": \"10737418240\", \"duration\": \"86400\", \"minPrice\": \"1\", \"maxCollateral\": \"9999999999\"}"