mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 05:17:58 +00:00
Update Node Template (#10710)
* update node template from downsteam template version = 4.0.0-dev rust setup updated * Update bin/node-template/runtime/Cargo.toml Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Review Rust setup README * Apply suggestions from code review Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Sacha Lansky <sacha@parity.io>
This commit is contained in:
@@ -72,20 +72,20 @@ Start the development chain with detailed logging:
|
||||
```bash
|
||||
RUST_BACKTRACE=1 ./target/release/node-template -ldebug --dev
|
||||
```
|
||||
|
||||
> Development chain means that the state of our chain will be in a tmp folder while the nodes are
|
||||
> running. Also, **alice** account will be authority and sudo account as declared in the [genesis
|
||||
> state](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/node/src/chain_spec.rs#L49).
|
||||
> At the same time the following accounts will be prefunded:
|
||||
> running. Also, **alice** account will be authority and sudo account as declared in the
|
||||
> [genesis state](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/node/src/chain_spec.rs#L49).
|
||||
> At the same time the following accounts will be pre-funded:
|
||||
> - Alice
|
||||
> - Bob
|
||||
> - Alice//stash
|
||||
> - Bob//stash
|
||||
|
||||
In case of being interested in maintaining the chain' state futher in time a base path other than
|
||||
a temporary directory must be added so the db can be stored in the provided folder. We could use
|
||||
this folder to store different chain databases, as a different folder will be created per different
|
||||
chain that is ran. The following commands shows how to use a newly created folder as our db base
|
||||
path.
|
||||
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 temporal one. We could use this folder
|
||||
to store different chain databases, as a different folder will be created per different chain that
|
||||
is ran. The following commands shows how to use a newly created folder as our db base path.
|
||||
|
||||
```bash
|
||||
// Create a folder to use as the db base path
|
||||
@@ -103,6 +103,7 @@ $ ls ./my-chain-state/chains/dev
|
||||
db keystore network
|
||||
```
|
||||
|
||||
|
||||
### Connect with Polkadot-JS Apps Front-end
|
||||
|
||||
Once the node template is running locally, you can connect it with **Polkadot-JS Apps** front-end
|
||||
|
||||
Reference in New Issue
Block a user