Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Scripts to add new miners to Eudico Garden in runtime #159

Open
adlrocha opened this issue Mar 30, 2022 · 0 comments
Open

Scripts to add new miners to Eudico Garden in runtime #159

adlrocha opened this issue Mar 30, 2022 · 0 comments

Comments

@adlrocha
Copy link
Collaborator

adlrocha commented Mar 30, 2022

In Eudico Garden we have automations in place to add new nodes in runtime, but not to add new miners, this is currently done manually. The steps would be the following:

  • Provide the infrastructure and sync the node running from our local environment.
./add_node 1
  • We would then create a new bls account for the node and connect to some other node to send some funds: ./eudico send <bls_addr> <someFIL>.
  • Finally, once the funds have arrived to the would connect to the new node and configure it as a miner by running:
OWNER_ID=./eudico state lookup <bls_addr>
WORKER_ID=./eudico state lookup <bls_addr>
# Fund OWNER_ID and WORKER_ID

lotus send $OWNER_ID 10000
lotus send $WORKER_ID 10000
# Configure miner
./lotus-miner init --owner $OWNER_ID --worker=$WORKER_ID --nosync
./lotus-miner run --nosync
./lotus-miner sectors pledge
./lotus-miner sectors pledge
./lotus-miner sectors seal 0
./lotus-miner sectors seal 1

The reason why this hasn't been automated is because ./lotus-miner run doesn't seem to ever sync. We'll defer introducing this until we figure out how to configure a miner correctly. In the meantime, this can be done manually.

@adlrocha adlrocha changed the title Scripts to add new minerse to Eudico Garden in runtime Scripts to add new miners to Eudico Garden in runtime Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant