Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
1e263062
Commit
1e263062
authored
3 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
doc(README): precise how to launch local testnet
parent
55e150a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+79
-43
79 additions, 43 deletions
README.md
with
79 additions
and
43 deletions
README.md
+
79
−
43
View file @
1e263062
...
@@ -71,6 +71,42 @@ CAUTION: In order for **Polkadot-JS Apps** to be able to fully understand the in
...
@@ -71,6 +71,42 @@ CAUTION: In order for **Polkadot-JS Apps** to be able to fully understand the in
If you want to see the multi-node consensus algorithm in action, refer to
If you want to see the multi-node consensus algorithm in action, refer to
[
our Start a Private Network tutorial
](
https://substrate.dev/docs/en/tutorials/start-a-private-network/
)
.
[
our Start a Private Network tutorial
](
https://substrate.dev/docs/en/tutorials/start-a-private-network/
)
.
### Purge previous lacal testnet
```
./target/release/lc-core purge-chain --base-path /tmp/alice --chain local
./target/release/lc-core purge-chain --base-path /tmp/bob --chain local
```
### Start Alice's node
```
bash
./target/release/lc-core
\
--base-path
/tmp/alice
\
--chain
local
\
--alice
\
--port
30333
\
--ws-port
9945
\
--rpc-port
9933
\
--node-key
0000000000000000000000000000000000000000000000000000000000000001
\
--validator
```
### Start Bob's node
```
bash
./target/release/lc-core
\
--base-path
/tmp/bob
\
--chain
local
\
--bob
\
--port
30334
\
--ws-port
9946
\
--rpc-port
9934
\
--validator
\
--bootnodes
/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
```
## Project Structure
## Project Structure
A Substrate project such as this consists of a number of components that are spread across a few
A Substrate project such as this consists of a number of components that are spread across a few
...
@@ -96,7 +132,7 @@ There are several files in the `node` directory - take special note of the follo
...
@@ -96,7 +132,7 @@ There are several files in the `node` directory - take special note of the follo
[
chain specification
](
https://substrate.dev/docs/en/knowledgebase/integrate/chain-spec
)
is a
[
chain specification
](
https://substrate.dev/docs/en/knowledgebase/integrate/chain-spec
)
is a
source code file that defines a Substrate chain's initial (genesis) state. Chain specifications
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
are useful for development and testing, and critical when architecting the launch of a
production chain. Take note of the
`development_c
onfig
`
and
`testnet_genesis`
functions, which
production chain. Take note of the
`development_c
hain_spec
`
and
`testnet_genesis`
functions, which
are used to define the genesis state for the local development chain configuration. These
are used to define the genesis state for the local development chain configuration. These
functions identify some
functions identify some
[
well-known accounts
](
https://substrate.dev/docs/en/knowledgebase/integrate/subkey#well-known-keys
)
[
well-known accounts
](
https://substrate.dev/docs/en/knowledgebase/integrate/subkey#well-known-keys
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment