You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/farming.md
+62-38Lines changed: 62 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
# ⚠️ Living document
2
+
3
+
**‼️ NOTE: This is a living document reflecting current state of the codebase, make sure to open this page from the [release you want to install](https://github.com/subspace/subspace/releases) and not directly ‼️**
1
4
2
5
# 👨🌾 Getting Started Farming
3
6
@@ -36,12 +39,11 @@ The address of your account will be necessary at the last step.
36
39
# Copy all of the lines below, they are all part of the same command
If you are getting `invalid solution` errors (visible on the terminal that Node runs), please follow "Switching to a new snapshot" steps below and start afresh.
266
277
267
-
---
268
278
## Switching to a new snapshot
269
279
270
280
### CLI
@@ -284,18 +294,20 @@ Now follow installation guide.
284
294
285
295
### Docker
286
296
287
-
In case of Docker setup run `docker-compose down` (and manually delete custom directories if you have specified them).
297
+
In case of Docker setup run `docker-compose down -v` (and manually delete custom directories if you have specified them).
288
298
289
299
Now follow installation guide.
290
300
291
301
## Help
292
302
293
303
There are extra commands and parameters you can use on farmer or node, use the `--help` after any other command to display additional options.
294
304
295
-
Below are some helpful farmer commands:
305
+
Below are some helpful samples:
296
306
297
-
-`farm --reward-address WALLET_ADDRESS` : starts background plotting and farming together, farmed testnet coins will be sent to `WALLET_ADDRESS`
298
-
-`wipe` : erases the plot and identity (including plot, commitment, object mappings and identity files)
307
+
-`./FARMER_FILE_NAME farm --custom-path /path/to/data ...` : will store data in `/path/to/data` instead of default location
308
+
-`./FARMER_FILE_NAME wipe --custom-path /path/to/data` : erases everything related to farmer if data were stored in `/path/to/data`
309
+
-`./NODE_FILE_NAME --base-path /path/to/data --chain testnet ...` : start node and store data in `/path/to/data` instead of default location
310
+
-`./NODE_FILE_NAME purge-chain --base-path /path/to/data --chain testnet` : erases data related to the node if data were stored in `/path/to/data`
299
311
300
312
Examples:
301
313
```bash
@@ -304,6 +316,20 @@ Examples:
304
316
./FARMER_FILE_NAME wipe
305
317
```
306
318
319
+
## [Advanced] Running an archival node
320
+
321
+
Instructions above will get you full node (doesn't store the history and state of the whole blockchain, only last 1024
322
+
blocks). If you want to opt in to storing the whole history (archival node), remove following parameters (lines) from
323
+
above instructions before starting your node:
324
+
*`--unsafe-pruning`
325
+
*`--pruning 1024`
326
+
*`--keep-blocks 1024`
327
+
328
+
Archival node is useful if you run an RPC node and want to support querying older blockchain history.
329
+
330
+
NOTE: You can't switch between full and archival node without wiping it, so if you need that, follow steps in
331
+
[Switching to a new snapshot](#switching-to-a-new-snapshot) section above.
332
+
307
333
## [Advanced] Build from source (Linux)
308
334
309
335
If you're running unsupported Linux distribution or CPU architecture, you may try to build binaries yourself from source.
@@ -316,17 +342,15 @@ You'll have to have [Rust toolchain](https://rustup.rs/) installed as well as LL
316
342
sudo apt-get install llvm clang
317
343
```
318
344
319
-
Now clone the source and build snapshot `snapshot-2022-mar-09` (replace occurrences with the snapshot you want to build):
345
+
Now clone the source and build snapshot `snapshot-2022-apr-29` (replace occurrences with the snapshot you want to build):
0 commit comments