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
This is a mono repository for [Subspace Network](https://www.subspace.network/) implementation, primarily containing
3
7
Subspace node/client using Substrate framework and farmer app implementations.
4
8
@@ -7,16 +11,20 @@ Proof-of-Capacity (PoC) consensus, which is a simplified version of Subspace usi
7
11
implemented as part of [Web 3 Foundation Open Grant](https://github.com/w3f/Open-Grants-Program/blob/master/applications/spartan_poc_consensus_module.md).
8
12
9
13
### Repository structure
14
+
10
15
The structure of this repository is the following:
11
-
*`crates` contains Subspace-specific Rust crates used to build node and farmer, most are following Substrate naming conventions
12
-
*`substrate` contains modified copies of Substrate's crates that we use for testing
13
-
*`node-template-spartan` is the current implementation of the node for Spartan protocol (will be upgraded to Subspace soon)
16
+
17
+
-`crates` contains Subspace-specific Rust crates used to build node and farmer, most are following Substrate naming conventions
18
+
-`substrate` contains modified copies of Substrate's crates that we use for testing
19
+
-`node-template-spartan` is the current implementation of the node for Spartan protocol (will be upgraded to Subspace soon)
14
20
15
21
### How to run
22
+
16
23
This is a monorepo with multiple binaries and the workflow is typical for Rust projects:
17
-
*`cargo run --bin node-template-spartan -- --dev --tmp` to run [a node](node-template-spartan)
18
-
*`cargo run --release --bin spartan-farmer -- plot 256000 spartan` to [create a 1 GiB plot](crates/spartan-farmer#create-a-new-plot)
19
-
*`cargo run --release --bin spartan-farmer -- farm` to [start farming](crates/spartan-farmer#start-the-farmer)
24
+
25
+
-`cargo run --bin node-template-spartan -- --dev --tmp` to run [a node](node-template-spartan)
26
+
-`cargo run --release --bin spartan-farmer -- plot 256000 spartan` to [create a 1 GiB plot](crates/spartan-farmer#create-a-new-plot)
27
+
-`cargo run --release --bin spartan-farmer -- farm` to [start farming](crates/spartan-farmer#start-the-farmer)
20
28
21
29
NOTE: You need to have `nightly` version of Rust toolchain with `wasm32-unknown-unknown` target available or else you'll get a compilation error.
0 commit comments