Skip to content

Commit

Permalink
doc(Getting Started): build spec
Browse files Browse the repository at this point in the history
  • Loading branch information
deblanco committed Sep 7, 2023
1 parent 592495d commit 3898348
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@ Additionally, you can configure the following flags:
- `--unsafe-rpc-external --rpc-cors all --unsafe-ws-external`: Use if your node will be accessed from a system external to your localhost.
- `--bootnodes`: A list of p2p nodes for Stability to join the network. What is known as bootnodes
- `--base-path`: Specifies a custom base path for the data folder

## Generating the a build spec file or Genesis file

This file contains the initial genesis state that all nodes in the network agree on. The genesis state must be established when the blockchain is first started and it cannot be changed thereafter without starting an entirely new blockchain.

To generate the genesis file, execute the following command:

```sh
./target/release/stability build-spec --chain alphanet --disable-default-bootnode --raw > specs/alphanet.json
```

More info: https://docs.substrate.io/build/chain-spec/

0 comments on commit 3898348

Please sign in to comment.