mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/devp2p: improve example command
This commit is contained in:
parent
2f78e97a97
commit
06b85aba57
1 changed files with 12 additions and 7 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue