Skip to content

Commit 199b5c8

Browse files
committed
cmd/devp2p: improve example command
1 parent 76075b3 commit 199b5c8

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

cmd/devp2p/README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,22 @@ with our test chain. The chain files are located in `./cmd/devp2p/internal/ethte
115115
2. import blocks from `chain.rlp`
116116
3. run the client using the resulting database. For geth, use a command like the one below:
117117

118-
geth --datadir <datadir> --nodiscover --nat=none --networkid 3503995874084926 --verbosity 5
119-
120-
Tests also require access to the engine API.
121-
118+
geth \
119+
--datadir <datadir> \
120+
--nodiscover \
121+
--nat=none \
122+
--networkid 3503995874084926 \
123+
--verbosity 5 \
124+
--authrpc.jwtsecret 0x7365637265747365637265747365637265747365637265747365637265747365
125+
126+
Note that the tests also require access to the engine API.
122127
The test suite can now be executed using the devp2p tool.
123128

124129
devp2p rlpx eth-test \
125-
-chain internal/ethtest/testdata \
126-
-node enode://.... \
127-
-engineapi http://127.0.0.1:8546 \
128-
-jwt 0x424242424242424242424242...
130+
--chain internal/ethtest/testdata \
131+
--node enode://.... \
132+
--engineapi http://127.0.0.1:8551 \
133+
--jwtsecret 0x7365637265747365637265747365637265747365637265747365637265747365
129134

130135
Repeat the above process (re-initialising the node) in order to run the Eth Protocol test suite again.
131136

0 commit comments

Comments
 (0)