Blockchain validation node
Last updated
Last updated
Follow the steps below to get started with the example node.
.
.
.
Use Rust's native cargo
command to build and launch the node:
The cargo run
command will perform an initial build. Use the following command to build the node without launching it:
Once the project has been built, the following command can be used to explore all parameters and subcommands:
The provided cargo run
command will launch a temporary node and its state will be discarded after you terminate the process.
After the project has been built, there are other ways to launch the node.
This command will start the single-node development chain with non-persistent state:
Purge the development chain's state:
Start the development chain with detailed logging:
Development chain means that the state of our chain will be in a tmp folder while the nodes are running. the following accounts will be pre-funded:
Alice
Bob
In case of being interested in maintaining the chain' state between runs a base path must be added so the db can be stored in the provided folder instead of a temporary one. We could use this folder to store different chain databases, as a different folder will be created for each chain that is ran. The following commands shows how to use a newly created folder as our db base path.
To run Unit Tests, execute the following command: