Skip to content

Instantly share code, notes, and snippets.

@ZenGround0
Created May 15, 2020 23:23
Show Gist options
  • Save ZenGround0/d2c143d1616a82956beb99ec8b6326d0 to your computer and use it in GitHub Desktop.
Save ZenGround0/d2c143d1616a82956beb99ec8b6326d0 to your computer and use it in GitHub Desktop.
go-filecoin mining on testnet

Follow these steps to mine using go-filecoin client on testnet for adding a miner and sealing a sector

  1. Setup a go-filecoin node and sync the chain
  2. Create a bls address for your worker addr go-filecoin address new --type=bls. To get the address run go-filecoin address ls, it should be the last one in the list
  3. Create a miner actor with go-filecoin miner create <collateral> --sectorsize=<number-of-bytes-in-sector> --from=<new-bls-addr> --gas-price=0.0001 --gas-limit=100000
  4. go-filecoin mining start kicks the node into mining mode using the miner actor created in the last step
  5. go-filecoin mining pledge-sector starts sealing the sector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment