You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/client/examples/private-geth-network.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,18 @@ In this example, we import the genesis parameters for a private Proof-of-Authori
6
6
7
7
First, create a signer account and place in the `data` directory to use with geth to seal blocks following [these instructions](https://geth.ethereum.org/docs/interface/managing-your-accounts).
8
8
9
-
Next, open [these genesis parameters](../test/testdata/poa.json) and replace "728bb68502bfcd91ce4c7a692a0c0773ced5cff0" with your signer address in both the `extradata` property and in the `alloc` section.
9
+
Next, open [these genesis parameters](../test/testdata/geth-genesis/poa.json) and replace "728bb68502bfcd91ce4c7a692a0c0773ced5cff0" with your signer address in both the `extraData` property and in the `alloc` section.
10
10
11
11
Second, get geth configured to use the genesis parameters file just updated.
12
12
13
13
`geth init --datadir data poa.json`
14
14
15
-
Now, let's run geth and ensure that its sealing blocks. Note, geth will prompt you for a password to unlock your signer account.
15
+
Now, let's run geth and ensure that its sealing blocks. Note, geth will prompt you for a password to unlock your signer account.
16
16
17
17
`geth --datadir data --nat extip:[your local ip address here] --networkid 15470 --unlock [the signer account you created] --mine --nodiscover`
18
18
19
19
You should start seeing logs like below:
20
+
20
21
```bash
21
22
INFO [08-26|09:13:16.218] Commit new mining work number=1 sealhash=b6eb1d..65ac14 uncles=0 txs=0 gas=0 fees=0 elapsed="91.644µs"
22
23
INFO [08-26|09:13:16.218] Successfully sealed new block number=1 sealhash=b6eb1d..65ac14 hash=0fa2b5..d62aec elapsed="382.998µs"
@@ -35,6 +36,7 @@ Start the ethereumjs client with the custom genesis parameters:
35
36
`npm run client:start -- --gethGenesis=path/to/poa.json --bootnodes=[enode address of your geth node] --port=30305`
36
37
37
38
Shortly, you should start seeing the client produce logs showing it importing and executing blocks produced by the geth client!
39
+
38
40
```bash
39
-
INFO [08-26|09:22:46] Imported blocks count=2 number=26 hash=da44b792... hardfork=tangerineWhistle peers=1
41
+
INFO [08-26|09:22:46] Imported blocks count=2 number=26 hash=da44b792... hardfork=tangerineWhistle peers=1
0 commit comments