Examples
Example arweave configurations for common situations.
Note on wallets (aka private keys)
When packing or repacking you do not need a private key - you will only need a mining address (aka packing address)
Your mining address is not a private key - it is a public address
When mining, only nodes that will sign blocks need to have a private key / wallet.json stored locally
If your node will be part of a coordinated mining cluster (and is not the exit node) or is mining as part of a pool, it will never need your private key stored locally
For the following examples we will alway use
En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI
andQ5EfKawrRazp11HEDf_NJpxjYMV385j21nlQNjR8_pY
as mining addresses. Replace them with your own address(es) before running the sample commands.
Syncing and Packing
Situation
You're just getting started and need to download and pack data
You'll sync the data from network peers and pack it as you store it to disk
You'll pack the data to 16TB disks using the mining address
En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI
You'll use the
composite
packing format with a packing difficulty of1
, and will pack 4 partitions per diskNOTE It's best not to mine while you pack. The two processes are both resource intensive and will slow each other down. (i.e. omit the
mine
flag from your configuration)
Packing Unpacked Data
Situation
You've downloaded 4 partitions of unpacked data
You want to pack it so you can mine against it
You've downloaded the unpacked partitiona to an 18TB disk
You'll pack the data to 4TB disks using the mining address
En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI
You'll use the
composite
packing format with a packing difficulty of1
NOTE It's best not to mine while you pack. The two processes are both resource intensive and will slow each other down. (i.e. omit the
mine
flag from your configuration)
Repacking Packed Data In Place
Situation
You've been solo mining against 4 partitions of packed data
You want to repack it so you can join a mining pool
You want to repack in place so you don't need any extra storage capacity
Your packed data is stored on 4TB disks and is packed using the
spora_2_6
packing format with the mining addressEn2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI
The new mining address is
Q5EfKawrRazp11HEDf_NJpxjYMV385j21nlQNjR8_pY
and you want to repack to thecomposite
packing format with a packing difficulty of1
NOTE It's best not to mine while you pack. The two processes are both resource intensive and will slow each other down. (i.e. omit the
mine
flag from your configuration)
After repacking in place has completed, rename your directories, eg.
Running a VDF Server
Situation
You'd like to run a dedicated node to compute and publish VDF
You've decided not to have your VDF server mine
You only want to provide VDF for the following nodes:
1.2.3.4
5.6.7.8
5.6.7.8:1985
node.example.com
Last updated