Open 2-towns opened 1 month ago
Request
curl http://localhost:8080/api/codex/v1/storage/purchases
Marketplace enabled
Code: 200
Body: []
Marketplace disabled
Code: 503
Body: Persistence is not enabled
@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?
@veaceslavdoina on https://discord.com/channels/895609329053474826/1289188030795485327/1289196089005834294, you mentioned an indicator for Storage Provider. Can you explain if there is a relation between the storage provider and the marketplace and how to detect a connection with it ? Fetching the port 8091 ?
@veaceslavdoina ?
My initial question was to show in which mode we are running Codex. Per our documentation we can run Codex in three modes
persistence
+ --eth-provider
+ --eth-private-key
+ --marketplace-address
prover
+ --circuit-dir
In all the cases, we have same API, Transport and Discovery ports. But I'm not sure if we can detect via API if prover is enabled in the configuration.
Let's ask around :)
The Codex node can be run without the marketplace enabled.
In this case, we should provide an indicator to inform the user that in order to create storage requests or availabilities, they need to enable the marketplace on the client node first.
CC @veaceslavdoina