Start the Node
Starting your node
Subsembly Development Node
We have a compiled, minimal Substrate node that we use for development and testing purposes. It is a modified version of substrate-node-template. It uses Aura consensus for block production, and has support for Balances and Timestamp modules.
Starting Your Node
In the root directory of the project, there is a Makefile with useful commands to run the Substrate node. Make sure to install make, curl packages, if you don't have them installed.
brew install make curlapt-get install make curlAfter we have the required packages installed, we can run Substrate node with our runtime:
make run-node \
NAME=node01 \
PORT=30333 \
WS-PORT=9944 \
RPC-PORT=9933 \
spec=raw-chain-spec.jsonNow, you will notice that your node is running, but no blocks are being produced. At this point you should insert your keys into the keystore. In our case, you need to insert Aura keys that are needed for block production:
curl --location --request POST '0.0.0.0:9933' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "author_insertKey",
"params": ["aura","clip organ olive upper oak void inject side suit toilet stick narrow","0x9effc1668ca381c242885516ec9fa2b19c67b6684c02a8a3237b6862e5c8cd7e"],
"id": 1
}'If you receive this result, you have successfully inserted your Aura keys to the keystore.
Now, your node should start producing blocks:
But you can notice that no blocks are being finalised. For that we will need to insert GRANDPA keys.
And if you receive this result, you have successfully inserted your Aura keys to the keystore.
After inserting GRANDPA keys it is required to restart the node to see the blocks being finalised.
After restarting the node, you should see the following result:
Last updated
Was this helpful?