The miner connectivity with CIDgravity allow miner software and CIDgravity to communicate every time the miner receive a proposal and measure miner availability.
| Node | Supported |
|---|---|
| curio | ✅ |
| boost | ✅ |
| droplet(venus) | ✅ |
| lotus-markets | ❌ |
- Get a CIDgravity account : https://cidgravity.com
- GEt your API token from the Settings page of CIDgravity
- Set the miner get-ask prices to 0 and size to the widest range via the BoostUI(:8080/settings) or Venus Settings :
- Price = 0
- Verified Price = 0
- Min Piece Size = 256B (or 128B for curio)
- Max Piece Size = 32G or 64G
CIDgravity is natively supported by Curio. To enable CIDgravity on a properly configured Curio market, simply configure Market/StorageMarketConfig/MK12/CIDGravityToken. You can also configure DefaultCIDGravityAccept to define whether Curio should accept or reject the deal processing if CIDgravity is not reachable.
The "CIDgravity connector" connects a boost or venus node to the CIDgravity service. This lighweight connector is executed locally by the markets node daemon each time a deal proposal is received.
- Install python modules : toml and requests
sudo apt install python3-toml python3-requests
- Install the connector
sudo -i -u "<USER_RUNNING_BOOST_PROCESS>"
git clone https://github.com/CIDgravity/CIDgravity-X.git
cd CIDgravity-X
cp -n cidgravity_storage_connector.toml.sample cidgravity_storage_connector.toml
- Add the CIDgravity authentication (located at https://app.cidgravity.com under Settings/Other settings")
nano ./cidgravity_storage_connector.toml
- Run the check process
./cidgravity_storage_connector.py --check-boost
- Enable "CIDgravity connector" Add the following lines to boost config (usually ~/.boost/config.toml) under the [Dealmaking] and [LotusDealmaking] section
Filter = "<ABSOLUTE_PATH>/cidgravity_storage_connector.py --reject"
RetrievalFilter = "<ABSOLUTE_PATH>/cidgravity_storage_connector.py --reject"
- Restart boost
- Run the check process
./cidgravity_storage_connector.py --check-venus
- Enable "CIDgravity connector"
Add the following lines to droplet config (under path ~/.droplet/config.toml by default) in the [CommonProvider] section (for more details, please refer to documentation here)
Filter = "<ABSOLUTE_PATH>/cidgravity_storage_connector.py --reject"
RetrievalFilter = "<ABSOLUTE_PATH>/cidgravity_storage_connector.py --reject"
- Restart droplet