Increase expiry

This commit is contained in:
Tomasz Bekas 2024-07-08 12:23:24 +02:00
parent 48d96c49cc
commit 7bc85829f9
No known key found for this signature in database
GPG Key ID: 4854E04C98824959
2 changed files with 2 additions and 3 deletions

View File

@ -101,13 +101,12 @@ Next you can run:
```shell
curl --request POST \
"http://localhost:8080/api/codex/v1/storage/request/${CID}" \
--header 'Content-Type: application/json' \
--write-out '\n' \
--data '{
"duration": "3600",
"reward": "1",
"proofProbability": "5",
"expiry": "600",
"expiry": "1200",
"nodes": 5,
"tolerance": 2,
"collateral": "1"

View File

@ -90,7 +90,7 @@ SET CID="..."
Next you can run:
```shell
curl --request POST --url http://localhost:8080/api/codex/v1/storage/request/%CID% --header "Content-Type: application/json" --data "{ \"duration\": \"3600\", \"reward\": \"1\", \"proofProbability\": \"5\", \"expiry\": \"600\", \"nodes\": 5, \"tolerance\": 2, \"collateral\": \"1\" }"
curl --request POST --url http://localhost:8080/api/codex/v1/storage/request/%CID% --header "Content-Type: application/json" --data "{ \"duration\": \"3600\", \"reward\": \"1\", \"proofProbability\": \"5\", \"expiry\": \"1200\", \"nodes\": 5, \"tolerance\": 2, \"collateral\": \"1\" }"
```
For descriptions of each parameter, please view the [Spec](https://github.com/codex-storage/nim-codex/blob/master/openapi.yaml).