cargocommand to build and launch the node:
cargo runcommand will perform an initial build. Use the following command to build the node without launching it:
make testscommand will launch comprehensive test suite.
cargo doc --package pallet-deip --open).
cargo runcommand 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.
nodedirectory - take special note of the following:
chain_spec.rs: A chain specification is a source code file that defines a Substrate chain's initial (genesis) state; chain specifications are useful for development and testing, and critical when architecting the launch of a production chain; take note of the
testnet_genesisfunctions, which are used to define the genesis state for the local development chain configuration; these functions identify some well-known accounts and use them to configure the blockchain's initial state
service.rs: This file defines the node implementation; take note of the libraries that this file imports and the names of the functions it invokes; in particular, there are references to consensus-related topics, such as the longest chain rule, the Aura block authoring mechanism and the GRANDPA finality gadget
impl $PALLET_NAME::Config for Runtime
Configconfiguration interface is used to define the types and parameters upon which a FRAME pallet depends
cargo build --release && ./target/release/node-template --dev --ws-external) by appending your own. A few useful ones are as follow.