Skip to content

Instantly share code, notes, and snippets.

@ilovelili
Last active May 5, 2021 10:55
Show Gist options
  • Save ilovelili/0a2980da53784d830cd859707f5e5f0c to your computer and use it in GitHub Desktop.
Save ilovelili/0a2980da53784d830cd859707f5e5f0c to your computer and use it in GitHub Desktop.
chia farming
# first, install
sudo apt-get update
sudo apt-get upgrade -y
git clone https://github.com/Chia-Network/chia-blockchain.git -b latest
cd chia-blockchain
sh install.sh
. ./activate
# second, node set up (save the private key mnemonic printed by the second step)
chia init
chia keys generate
chia start farmer
# The state of your wallet. The first time, it will ask if you want to restore
# from backup. Enter S to skip.
chia wallet show
# The state of your node. It will have to finish syncing before you can farm.
chia show -s
# The state of your farming operation. At this step, your node will still be
# syncing to the Chia blockchain, and you will have 0 plots.
chia farm summary
# Step 3, create a plot
# Plotting takes a long time. Depending on what kind of CPU and drive you provisioned (NVMe is best), it will take on the order of 12 hours to create a "real" plot. So, you probably want to do it in a screen
screen -S plotting
. ./activate
chia plots create
# chia plots create -r 4
# Or, run this first if you're curious to see the output. It uses a `k` value of 25
# instead of the default of 32, so it finishes in minutes instead of hours. You may
# want to delete the resulting plot file when it's finished, because k=32 is the minimum
# size that the network will accept.
chia plots create -k 1 --override-k
# The "plots" you create are files on disk, and they're getting created in the same directory as your software installation.
# Committed farmers use separate machines for plot creation and farming.
# There's a sequence of temporary files created along the way;
# you can use `chia plots create -h` to see all the options about which files go where
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment