Skip to content

Latest commit

 

History

History
 
 

subspace-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Subspace Node

Reference Node implementation for Subspace Network Blockchain using Substrate framework.

Getting Started

Follow these steps to get started with the Subspace Node 🛠️

Running

It is recommended to follow general farming instructions that explain how to run both farmer and node together.

Build from source

Rust toolchain is expected to be installed for anything in this repository to compile, but there are some extra dependencies for farmer specifically.

Prost library from libp2p dependency needs CMake, also LLVM/Clang, make and perl (last for OpenSSL for fc-db) are necessary:

sudo apt-get install llvm clang cmake make perl

Then build the farmer using Cargo:

cargo build --profile production subspace-node
target/production/subspace-node --version

Start the node

Start a single node development chain:

target/production/subspace-node \
    --dev \
    --rpc-external \
    --node-key 0000000000000000000000000000000000000000000000000000000000000001

By default, node data are written to subspace-node subdirectory of the OS-specific users local data directory.

Linux
$XDG_DATA_HOME or                   /home/alice/.local/share
$HOME/.local/share 

macOS
$HOME/Library/Application Support   /Users/Alice/Library/Application Support

Windows
{FOLDERID_LocalAppData}             C:\Users\Alice\AppData\Local

Start full node

You can now run another full node and sync the chain from the node started earlier:

target/production/subspace-node \
    --dev \
    --rpc-external \
    --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp

Embedded Docs

Once the project has been built, the following command can be used to explore all parameters and subcommands:

target/production/subspace-node --help