Skip to content

Commit

Permalink
feat: add [miner] config section in miner docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BowTiedDevOps committed Nov 18, 2024
1 parent 3150978 commit d75ed77
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions guides-and-tutorials/run-a-miner/mine-mainnet-stacks-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Now, we need to configure our node to use this Bitcoin keychain. Copy the [sampl
Next, update the stacks configuration:

* **Optional, but recommended:** Use a persistent directory to store the Stacks chainstate, i.e. `working_dir = "/stacks-blockchain"`
* From the `make_keychain` step, modify the `seed` value with `privatekey`
* From the `make_keychain` step, modify the `seed` and `mining_key` values with `privatekey`
* Store the following configuration somewhere on your filesystem (ex: `$HOME/mainnet-miner-conf.toml`)

```toml
Expand All @@ -189,7 +189,14 @@ password = "<bitcoin config rpcpassword>"
rpc_port = 8332
peer_port = 8333
satoshis_per_byte = 100
burn_fee_cap = 20000
burn_fee_cap = 450000

[miner]
mining_key = "<privateKey from JSON above>"
activated_vrf_key_path = "/stacks-blockchain/saved_vrf_key.json"

[connection_options]
private_neighbors = false
```

#### Start the Stacks Blockchain
Expand Down

0 comments on commit d75ed77

Please sign in to comment.