rene
e4270cacf4
cmd/devp2p: fix flaky SameRequestID test ( #22754 )
4 years ago
Martin Holst Swende
0c99868416
cmd/devp2p, eth/protocols/eth: fix tests + make sanity checks earlier ( #22749 )
4 years ago
rene
cac1b21d39
cmd/devp2p/internal/ethtest: add more tx propagation tests ( #22630 )
...
This adds a test for large tx announcement messages, as well as a test to
check that announced tx hashes are requested by the node.
4 years ago
rene
ea54c58d4f
cmd/devp2p/internal/ethtest: run test suite as Go unit test ( #22698 )
...
This change adds a Go unit test that runs the protocol test suite
against the go-ethereum implementation of the eth protocol.
4 years ago
rene
36b51b8156
cmd/devp2p: add old block announcement test to eth test suite ( #22474 )
...
Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated
4 years ago
rene
d3040a80d7
cmd/devp2p/internal/ethtest: skip eth/66 tests when v66 not supported ( #22460 )
4 years ago
rene
6a528fce33
cmd/devp2p/internal/ethtest: return request ID in BlockHeaders response ( #22508 )
...
This PR fixes an issue with the eth66 test suite where, during a readAndServe when
the test is manually responding to GetBlockHeader requests, it now responds
with a BlockHeaders eth66 packet that includes the inbound request ID.
4 years ago
Martin Holst Swende
3f74c8e0e5
cmd/devp2p: better testcase failure output for ethtests ( #22482 )
4 years ago
rene
de9465f991
cmd/devp2p: add eth66 test suite ( #22363 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
4 years ago
rene
f9445e93bb
cmd/devp2p/internal/ethtest: use shared message types ( #22315 )
...
This updates the eth protocol test suite to use the message type
definitions of the 'production' protocol implementation in eth/protocols/eth.
4 years ago
Marius van der Wijden
a1ddd9e1d3
cmd/devp2p/internal/ethtest: add transaction tests ( #21857 )
4 years ago
Marius van der Wijden
59b480ab4b
cmd/devp2p/internal/ethtest: add 'large announcement' tests ( #21792 )
...
* cmd/devp2p/internal/ethtest: added large announcement tests
* cmd/devp2p/internal/ethtest: added large announcement tests
* cmd/devp2p/internal/ethtest: refactored stuff a bit
* cmd/devp2p/internal/ethtest: added TestMaliciousStatus/Handshake
* cmd/devp2p/internal/ethtest: fixed rebasing issue
* happy linter, happy life
* cmd/devp2p/internal/ethtest: used readAndServe
* stuff
* cmd/devp2p/internal/ethtest: fixed test cases
4 years ago
rene
36bb7ac083
cmd/devp2p/internal/ethtest: add correct chain files and improve test output ( #21782 )
...
This PR replaces the old test genesis.json and chain.rlp files in the testdata
directory for the eth protocol test suite, and also adds documentation for
running the eth test suite locally.
It also improves the test output text and adds more timeouts.
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
Felix Lange
95f720fffc
cmd/devp2p/internal/ethtest: update test chain ( #21742 )
...
The old one was wrong in two ways: the first block in chain.rlp was the
genesis block, and the genesis difficulty was below minimum difficulty.
This also contains some other fixes to the test.
4 years ago
Felix Lange
524aaf5ec6
p2p/discover: implement v5.1 wire protocol ( #21647 )
...
This change implements the Discovery v5.1 wire protocol and
also adds an interactive test suite for this protocol.
4 years ago
rene
716864deba
cmd/devp2p/internal/ethtest: improve eth test suite ( #21615 )
...
This fixes issues with the protocol handshake and status exchange
and adds support for responding to GetBlockHeaders requests.
4 years ago
rene
fdd42d425b
cmd/devp2p/internal/ethtest: lower protocol version to 64 ( #21604 )
4 years ago
rene
39f8268147
cmd/devp2p/internal/ethtest: update version in handshake ( #21603 )
4 years ago
rene
a25899f3dc
cmd/devp2p: add eth protocol test suite ( #21598 )
...
This change adds a test framework for the "eth" protocol and some basic
tests. The tests can be run using the './devp2p rlpx eth-test' command.
4 years ago
Adam Schmideg
6a48ae37b2
cmd/devp2p: add discv4 test suite ( #21163 )
...
This adds a test suite for discovery v4. The test suite is a port of the Hive suite for
discovery, and will replace the current suite on Hive soon-ish. The tests can be
run locally with this command:
devp2p discv4 test -remote enode//...
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago