Skip to content

Commit

Permalink
cmd/devp2p: improve example command
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Nov 7, 2023
1 parent 76075b3 commit 199b5c8
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions cmd/devp2p/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,22 @@ with our test chain. The chain files are located in `./cmd/devp2p/internal/ethte
2. import blocks from `chain.rlp`
3. run the client using the resulting database. For geth, use a command like the one below:

geth --datadir <datadir> --nodiscover --nat=none --networkid 3503995874084926 --verbosity 5

Tests also require access to the engine API.

geth \
--datadir <datadir> \
--nodiscover \
--nat=none \
--networkid 3503995874084926 \
--verbosity 5 \
--authrpc.jwtsecret 0x7365637265747365637265747365637265747365637265747365637265747365

Note that the tests also require access to the engine API.
The test suite can now be executed using the devp2p tool.

devp2p rlpx eth-test \
-chain internal/ethtest/testdata \
-node enode://.... \
-engineapi http://127.0.0.1:8546 \
-jwt 0x424242424242424242424242...
--chain internal/ethtest/testdata \
--node enode://.... \
--engineapi http://127.0.0.1:8551 \
--jwtsecret 0x7365637265747365637265747365637265747365637265747365637265747365

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

Expand Down

0 comments on commit 199b5c8

Please sign in to comment.