cmd/devp2p: improve example command

This commit is contained in:
Felix Lange 2023-11-07 13:44:58 +01:00
parent 2f78e97a97
commit 06b85aba57

View file

@ -115,17 +115,22 @@ with our test chain. The chain files are located in `./cmd/devp2p/internal/ethte
2. import blocks from `chain.rlp` 2. import blocks from `chain.rlp`
3. run the client using the resulting database. For geth, use a command like the one below: 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 geth \
--datadir <datadir> \
Tests also require access to the engine API. --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. The test suite can now be executed using the devp2p tool.
devp2p rlpx eth-test \ devp2p rlpx eth-test \
-chain internal/ethtest/testdata \ --chain internal/ethtest/testdata \
-node enode://.... \ --node enode://.... \
-engineapi http://127.0.0.1:8546 \ --engineapi http://127.0.0.1:8551 \
-jwt 0x424242424242424242424242... --jwtsecret 0x7365637265747365637265747365637265747365637265747365637265747365
Repeat the above process (re-initialising the node) in order to run the Eth Protocol test suite again. Repeat the above process (re-initialising the node) in order to run the Eth Protocol test suite again.