The "CIDgravity connector" connects a lotus-miner to the CIDgravity service. This lighweight connector is executed locally by the lotus-miner process each time the lotus-miner receives a deal proposal.
- Get a CIDgravity account (contact@cidgravity.com)
- Depending of your setup : - Monolitic lotus : deploy CIDgravity Connector on your miner only (if you don't know what is split store, you probably run a Monolitic lotus) - Split Store lotus : deploy CID gravity Connector on all markets node instead of the miner
- Set your get-ask prices to 0 and size to the widest range :
lotus-miner storage-deals set-ask --price 0 --verified-price 0 --min-piece-size 256 --max-piece-size MINER_SEC_SIZE
- Install python modules : toml and requests
sudo apt install python3-toml python3-requests
- Install the connector
sudo -i -u USER_RUNNING_LOTUS_MINER_PROCESS
git clone https://github.com/CIDgravity/CIDgravity-X.git
cd CIDgravity-X
- Add your CIDgravity authentification TOKEN (TOKEN is located under the "Settings" section on the CIDgravity portal > tab "Other settings") and set the logfile location to the CIDgravity config file
cp cidgravity_storage_connector.toml.sample cidgravity_storage_connector.toml
nano ./cidgravity_storage_connector.toml
- Execute the check process
./cidgravity_storage_connector.py --check
- Enable "CIDgravity connector" in lotus-miner by adding the following line to .lotusminer/config.toml under the [Dealmaking] section
Filter = "ABSOLUTE_PATH/cidgravity_storage_connector.py --reject"
RetrievalFilter = "ABSOLUTE_PATH/cidgravity_storage_connector.py --reject"
- Restart lotus-miner
DONE :) you can now enjoy CIDgravity