Creating a new miner in Curio #28
stuberman
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While using
curio guided-setup
is a great help especially for migrations of existing lotus-miners, I want to share my experiences with building a new curio based miner from scratch (not a migration) using all of the components needed to make deals and store data on a single device. I will update this post as I learn more or as features change.As it stands today using
curio version 1.27.1-dev+calibnet
there are four major components needed:High Level Initial setup (other documents provide the details in installing and configuring)
Preconfig:
NTP
andtransparent hugepages
configuredYugabyte
export PATH=$PATH:/market/db/yugabyte-2.21.0.1/bin
andexport CURIO_DB_HOST=192.168.1.96
yugabyted status
Lotus node
export FULLNODE_API_INFO=eyJhbGc...[hidden]:/ip4/127.0.0.1/tcp/1234/http
lotus wallet list -i
Curio
curio guided-setup
curio run
- notice the logs - expect to see a number of errors until final configurationcurio cli storage attach --init --seal --max-storage 4000000000000 /seal/worker
(initializes your sealing repo for 4TB)curio cli storage attach --init --store --max-storage 4000000000000 /store
(initializes your storage repo for 4 TB)curio run --layers=gui,post,seal --name MyMiner --storage-json /store/storage.json
curio cli log set-level --system stores info
curio seal start --actor t0118948 --cc --now
(put in your minerID)Boost
t01203456:127.0.0.1:32100
(where the port number is unique)nohup boostd-data run yugabyte --hosts 192.168.1.96 --connect-string="postgresql://yugabyte:yugabyte@192.168.1.96:5433?sslmode=disable" --addr 0.0.0.0:8044 &
curio market rpc-info --layers base
use the output for [miner api] belowOPTIONS:
--api-sealer value miner/sealer API info (lotus-miner auth api-info --perm=admin)
--api-sector-index value miner sector Index API info (lotus-miner auth api-info --perm=admin)
--wallet-publish-storage-deals value wallet to be used for PublishStorageDeals messages
--wallet-deal-collateral value wallet to be used for deal collateral
--max-staging-deals-bytes value max size for staging area in bytes (default: 0)
[LocalIndexDirectory.Yugabyte]
section and add connect stringnohup boostd run > /market/logs/boost.log 2>&1 &
Stopping the system
curio cli stop
lotus daemon stop
yugabyted stop
Starting the system
yugabyted start
yugabyted status
nohup lotus daemon > /store/logs/lotus.log 2>&1 &
tail -f /store/logs/lotus.log
lotus sync wait
curio run --layers=gui,post,seal --name MyMinerName
curio cli log set-level --system stores info
Start Boost data connector
nohup boostd-data run yugabyte --hosts 192.168.1.96 --connect-string="postgresql://yugabyte:yugabyte@192.168.1.96:5433?sslmode=disable" --addr 0.0.0.0:8044 &
Start Boost
nohup boostd run > /market/logs/boost.log 2>&1 &
Beta Was this translation helpful? Give feedback.
All reactions