-
Notifications
You must be signed in to change notification settings - Fork 20.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/devp2p: ethtest suite runnable as unit test #22698
Conversation
cc004df
to
1991d65
Compare
0a93952
to
eda866c
Compare
So it passes, but also takes a long time. We need to make it run faster. |
The long tests are
We need to see why they take so much time. Is it because of large data transfer, or because the test has a large timeout? |
I tried setting global |
In
|
// Send the transaction | ||
if err := sendConn.Write(&Transactions{tx}); err != nil { | ||
txMsg := Transactions(txs) | ||
if err := sendConn.Write(&txMsg); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should announce the txs individually here. Some of them can be large, and the node might reject the entire announcement when the first item is too big.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant is, you can just send them in a loop like
for _, tx := range txs {
if err := sendConn.Write(&Transactions{tx}); err != nil { ... }
}
…#22698) This change adds a Go unit test that runs the protocol test suite against the go-ethereum implementation of the eth protocol.
This PR adds a test file to allow the eth test suite to be runnable as independent unit tests for easier testing.
TODO: