33 lines
933 B
Bash
Raw Normal View History

# Start script for storage node on local network NUC
2024-06-25 09:14:52 +02:00
BOOTSPR=$(curl http://localhost:8078/api/codex/v1/spr | cut -d '"' -f4)
2024-06-18 14:57:25 +02:00
# Quota = 11 GB
# Availability = 10 GB
2024-06-26 09:01:10 +02:00
./codex-prover-v0.1.1-linux-amd64 \
2024-06-24 14:53:38 +02:00
--data-dir=data_host \
2024-06-18 14:57:25 +02:00
--circuit-dir=circuit \
--storage-quota=11811160064 \
--nat=192.168.88.253 \
2024-06-18 14:57:25 +02:00
--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 \
2024-06-20 09:05:51 +02:00
--marketplace-address=0x9C88D67c7C745D2F0A4E411c18A6a22c15b37EaA \
2024-06-18 14:57:25 +02:00
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\"}"