Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit b448b2e

Browse files
committed
Update Start a Private Network
1 parent 3ce4a31 commit b448b2e

File tree

5 files changed

+96
-106
lines changed

5 files changed

+96
-106
lines changed

β€Žtuts/start-a-private-network/v2.0.0-rc2/alicebob.md

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -53,33 +53,33 @@ Let's look at those flags in detail:
5353
When the node starts you should see output similar to this.
5454

5555
```
56-
2020-05-15 14:51:15 Substrate Node
57-
2020-05-15 14:51:15 ✌️ version 2.0.0-alpha.8-405717b-x86_64-linux-gnu
58-
2020-05-15 14:51:15 ❀️ by Substrate DevHub <https://github.com/substrate-developer-hub>, 2017-2020
59-
2020-05-15 14:51:15 πŸ“‹ Chain specification: Local Testnet
60-
2020-05-15 14:51:15 🏷 Node name: Alice
61-
2020-05-15 14:51:15 πŸ‘€ Role: AUTHORITY
62-
2020-05-15 14:51:15 πŸ’Ύ Database: RocksDb at /tmp/alice/chains/local_testnet/db
63-
2020-05-15 14:51:15 β›“ Native runtime: node-template-1 (node-template-1.tx1.au1)
64-
2020-05-15 14:51:15 πŸ”¨ Initializing Genesis block/state (state: 0xf8cd…bb13, header-hash: 0x8052…90f0)
65-
2020-05-15 14:51:15 πŸ‘΄ Loading GRANDPA authority set from genesis on what appears to be first startup.
66-
2020-05-15 14:51:15 ⏱ Loaded block-time = 6000 milliseconds from genesis on first-launch
67-
2020-05-15 14:51:15 πŸ“¦ Highest known block at #0
68-
2020-05-15 14:51:15 Using default protocol ID "sup" because none is configured in the chain specs
69-
2020-05-15 14:51:15 🏷 Local node identity is: QmRBS1wLLS5u7MVGxJTFGJHAfiSWqh2CgaLZ67D4Pait2T
70-
2020-05-15 14:51:15 〽️ Prometheus server started at 127.0.0.1:9615
71-
2020-05-15 14:51:20 πŸ’€ Idle (0 peers), best: #0 (0x8052…90f0), finalized #0 (0x8052…90f0), ⬇ 0 ⬆ 0
72-
2020-05-15 14:51:25 πŸ’€ Idle (0 peers), best: #0 (0x8052…90f0), finalized #0 (0x8052…90f0), ⬇ 0 ⬆ 0
56+
2020-05-28 13:09:30 Substrate Node
57+
2020-05-28 13:09:30 ✌️ version 2.0.0-rc2-83d7157-x86_64-linux-gnu
58+
2020-05-28 13:09:30 ❀️ by Substrate DevHub <https://github.com/substrate-developer-hub>, 2017-2020
59+
2020-05-28 13:09:30 πŸ“‹ Chain specification: Local Testnet
60+
2020-05-28 13:09:30 🏷 Node name: Alice
61+
2020-05-28 13:09:30 πŸ‘€ Role: AUTHORITY
62+
2020-05-28 13:09:30 πŸ’Ύ Database: RocksDb at /tmp/alice/chains/local_testnet/db
63+
2020-05-28 13:09:30 β›“ Native runtime: node-template-1 (node-template-1.tx1.au1)
64+
2020-05-28 13:09:30 πŸ”¨ Initializing Genesis block/state (state: 0xf7ca…5c0f, header-hash: 0x1b54…0198)
65+
2020-05-28 13:09:30 πŸ‘΄ Loading GRANDPA authority set from genesis on what appears to be first startup.
66+
2020-05-28 13:09:30 ⏱ Loaded block-time = 6000 milliseconds from genesis on first-launch
67+
2020-05-28 13:09:30 πŸ“¦ Highest known block at #0
68+
2020-05-28 13:09:30 Using default protocol ID "sup" because none is configured in the chain specs
69+
2020-05-28 13:09:30 🏷 Local node identity is: 12D3KooWFGe9f8p88PVU3E4AwJEjU47DCWgJjU7SwGhvbDm6T7V2 (legacy representation: QmdYNXLKscxk45kK7VNnR95zkjYW2KVg9Qdv1WG6w73rQN)
70+
2020-05-28 13:09:30 〽️ Prometheus server started at 127.0.0.1:9615
71+
2020-05-28 13:09:35 πŸ’€ Idle (0 peers), best: #0 (0x1b54…0198), finalized #0 (0x1b54…0198), ⬇ 0 ⬆ 0
72+
2020-05-28 13:09:40 πŸ’€ Idle (0 peers), best: #0 (0x1b54…0198), finalized #0 (0x1b54…0198), ⬇ 0 ⬆ 0
7373
...
7474
```
7575

7676
> **Notes**
7777
>
78-
> - `πŸ”¨ Initializing Genesis block/state (state: 0xf8cd…bb13, header-hash: 0x8052…90f0)` tells which
78+
> - `πŸ”¨ Initializing Genesis block/state (state: 0xf7ca…5c0f, header-hash: 0x1b54…0198)` tells which
7979
> genesis block the node is using. When you start the next node, verify that these values are
8080
> equal.
81-
> - `🏷 Local node identity is: QmRBS1wLLS5u7MVGxJTFGJHAfiSWqh2CgaLZ67D4Pait2T` shows the Peer ID
82-
> that Bob will need when booting from Alice's node.
81+
> - `🏷 Local node identity is: 12D3KooWFGe9f8p88PVU3E4AwJEjU47DCWgJjU7SwGhvbDm6T7V2...` shows the
82+
> Peer ID that Bob will need when booting from Alice's node.
8383
8484
You'll notice that no blocks are being produced yet. Blocks will start being produced once another
8585
node joins the network.
@@ -158,38 +158,35 @@ Most of these options are already explained above, but there are a few points wo
158158
correctly specify these three pieces of information which Alice can supply for him.
159159
- Alice's IP Address, probably `127.0.0.1`
160160
- Alice's Port, probably `30333`
161-
- Alice's Peer ID, copied from her log output. (`QmRBS1wLLS5u7MVGxJTFGJHAfiSWqh2CgaLZ67D4Pait2T`
162-
in the example output above.)
161+
- Alice's Peer ID, copied from her log output.
162+
(`12D3KooWFGe9f8p88PVU3E4AwJEjU47DCWgJjU7SwGhvbDm6T7V2` in the example output above.)
163163

164164
If all is going well, after a few seconds, the nodes should peer together and start producing
165165
blocks. You should see some lines like the following in the console that started Alice node.
166166

167167
```
168168
...
169-
2020-05-15 14:53:50 πŸ’€ Idle (0 peers), best: #0 (0x8052…90f0), finalized #0 (0x8052…90f0), ⬇ 0 ⬆ 0
170-
2020-05-15 14:53:55 πŸ’€ Idle (0 peers), best: #0 (0x8052…90f0), finalized #0 (0x8052…90f0), ⬇ 0 ⬆ 0
171-
2020-05-15 14:53:56 πŸ” Discovered new external address for our node: /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWBqpRKmr35HLTbyZVwxbge6oiGJEVq9rbMVuMcJfsKCQR
172-
2020-05-15 14:54:00 πŸ™Œ Starting consensus session on top of parent 0x805231af24954e4bc81cbad94219279c2d80fc462110ebd2855ac16afd9b90f0
173-
2020-05-15 14:54:00 🎁 Prepared block for proposing at 1 [hash: 0xbe2001da24ccd6cc437131ef680ac6a73fe9f1f26c69d16b77300326d8c4dafe; parent_hash: 0x8052…90f0; extrinsics (1): [0x19b7…decb]]
174-
2020-05-15 14:54:00 πŸ”– Pre-sealed block for proposal at 1. Hash now 0x56474d42ffc080e7f2863a69e2575b93c05cf25540508115b9c0bfecc67f8d93, previously 0xbe2001da24ccd6cc437131ef680ac6a73fe9f1f26c69d16b77300326d8c4dafe.
175-
2020-05-15 14:54:00 ✨ Imported #1 (0x5647…8d93)
176-
2020-05-15 14:54:00 πŸ’€ Idle (1 peers), best: #1 (0x5647…8d93), finalized #0 (0x8052…90f0), ⬇ 1.1kiB/s ⬆ 1.2kiB/s
177-
2020-05-15 14:54:05 πŸ’€ Idle (1 peers), best: #1 (0x5647…8d93), finalized #0 (0x8052…90f0), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
178-
2020-05-15 14:54:06 πŸ™Œ Starting consensus session on top of parent 0x56474d42ffc080e7f2863a69e2575b93c05cf25540508115b9c0bfecc67f8d93
179-
2020-05-15 14:54:06 🎁 Prepared block for proposing at 2 [hash: 0x3d51104d3f4362ab28dcd18a0295200275b07d930295e04408e4afc5c55395aa; parent_hash: 0x5647…8d93; extrinsics (1): [0x4b1d…01a8]]
180-
2020-05-15 14:54:06 Encountered consensus error: CannotSign([142, 175, 4, 21, 22, 135, 115, 99, 38, 201, 254, 161, 126, 37, 252, 82, 135, 97, 54, 147, 201, 18, 144, 156, 178, 38, 170, 71, 148, 242, 106, 72], "An unknown keystore error occurred: No such file or directory (os error 2)")
181-
2020-05-15 14:54:06 ✨ Imported #2 (0x90f1…3077)
182-
2020-05-15 14:54:10 πŸ’€ Idle (1 peers), best: #2 (0x90f1…3077), finalized #0 (0x8052…90f0), ⬇ 0.7kiB/s ⬆ 0.7kiB/s
183-
2020-05-15 14:54:12 πŸ™Œ Starting consensus session on top of parent 0x90f1141fe77e6dd9e003d93b9d0a6dcc5c91e653f5f182cb318177f949fd3077
184-
2020-05-15 14:54:12 🎁 Prepared block for proposing at 3 [hash: 0x0e12b4991a8523f216d3ee51e5d6da1686eddbf006940044f00f3a9a19aa5f6d; parent_hash: 0x90f1…3077; extrinsics (1): [0xdbd6…9785]]
185-
2020-05-15 14:54:12 πŸ”– Pre-sealed block for proposal at 3. Hash now 0xf2dfc4edfc8357726f9fd64ee3130a0ae1a9de87ed7a18ab926f413ee018f4d9, previously 0x0e12b4991a8523f216d3ee51e5d6da1686eddbf006940044f00f3a9a19aa5f6d.
186-
2020-05-15 14:54:12 ✨ Imported #3 (0xf2df…f4d9)
187-
2020-05-15 14:54:15 πŸ’€ Idle (1 peers), best: #3 (0xf2df…f4d9), finalized #1 (0x5647…8d93), ⬇ 1.0kiB/s ⬆ 0.9kiB/s
169+
2020-05-28 13:13:14 πŸ’€ Idle (0 peers), best: #0 (0x1b54…0198), finalized #0 (0x1b54…0198), ⬇ 0 ⬆ 0
170+
2020-05-28 13:13:19 πŸ’€ Idle (0 peers), best: #0 (0x1b54…0198), finalized #0 (0x1b54…0198), ⬇ 0 ⬆ 0
171+
2020-05-28 13:13:22 πŸ” Discovered new external address for our node: /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWFGe9f8p88PVU3E4AwJEjU47DCWgJjU7SwGhvbDm6T7V2
172+
2020-05-28 13:13:24 πŸ™Œ Starting consensus session on top of parent 0x1b54d33e7be756ecb667b4e10153511346ea1a5b95068c946134103f63690198
173+
2020-05-28 13:13:24 🎁 Prepared block for proposing at 1 [hash: 0xb54d18595c90ff39d4efd2835a883f60446f889500a16dbab18bafe480152dab; parent_hash: 0x1b54…0198; extrinsics (1): [0xb2b3…d97e]]
174+
2020-05-28 13:13:24 πŸ”– Pre-sealed block for proposal at 1. Hash now 0x84a61167bd9c2eecaa2f242e3bc747a49be40bbcd76d5897f908fee53e205967, previously 0xb54d18595c90ff39d4efd2835a883f60446f889500a16dbab18bafe480152dab.
175+
2020-05-28 13:13:24 ✨ Imported #1 (0x84a6…5967)
176+
2020-05-28 13:13:24 πŸ’€ Idle (1 peers), best: #1 (0x84a6…5967), finalized #0 (0x1b54…0198), ⬇ 0.9kiB/s ⬆ 1.0kiB/s
177+
2020-05-28 13:13:29 πŸ’€ Idle (1 peers), best: #1 (0x84a6…5967), finalized #0 (0x1b54…0198), ⬇ 0.7kiB/s ⬆ 0.6kiB/s
178+
2020-05-28 13:13:30 ✨ Imported #2 (0x5865…74d5)
179+
2020-05-28 13:13:34 πŸ’€ Idle (1 peers), best: #2 (0x5865…74d5), finalized #0 (0x1b54…0198), ⬇ 0.7kiB/s ⬆ 0.7kiB/s
180+
2020-05-28 13:13:36 πŸ™Œ Starting consensus session on top of parent 0x5865da4ba8dbf983845ef9b17f3e5920a067de5215120feb42a63778af0a74d5
181+
2020-05-28 13:13:36 🎁 Prepared block for proposing at 3 [hash: 0xd8f870209fcaca8d2372d39125561990fdd6b9d6941ced7b0835044ff7a77693; parent_hash: 0x5865…74d5; extrinsics (1): [0x309d…0d70]]
182+
2020-05-28 13:13:36 πŸ”– Pre-sealed block for proposal at 3. Hash now 0x1c03614c74ff7be6841777009dd368d864c850d3e238ffb27e871099ec54773d, previously 0xd8f870209fcaca8d2372d39125561990fdd6b9d6941ced7b0835044ff7a77693.
183+
2020-05-28 13:13:36 ✨ Imported #3 (0x1c03…773d)
184+
2020-05-28 13:13:39 πŸ’€ Idle (1 peers), best: #3 (0x1c03…773d), finalized #1 (0x84a6…5967), ⬇ 1.1kiB/s ⬆ 1.2kiB/s
188185
...
189186
```
190187

191188
These lines shows that Bob has peered with Alice (**`1 peers`**), they have produced some blocks
192-
(**`best: #3 (0xf2df…f4d9)`**), and blocks are being finalized (**`finalized #1 (0x5647…8d93)`**).
189+
(**`best: #3 (0x1c03…773d)`**), and blocks are being finalized (**`finalized #1 (0x84a6…5967)`**).
193190

194191
Looking at the console that started Bob's node, you should see something similar.
195192

0 commit comments

Comments
Β (0)