Skip to content

Conversation

@flcl42
Copy link
Contributor

@flcl42 flcl42 commented Oct 27, 2025

  • Fix disconnection detection
  • Add 1gwei tip
  • Handle two pooled tx requests


// Check if peer disconnects at the end.
code, _, err := conn.Read()
if err == errDisc || code == discMsg {
Copy link
Contributor Author

@flcl42 flcl42 Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fjl It seems like the test fails when we do disconnect, or I'm missing something obvious

Copy link
Contributor Author

@flcl42 flcl42 Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah looks like geth sends back empty BlockHeadersMsgs, which kinda ok, but not handled by the test, imho. Does it disconnect then? Not sure if it sends disconnect message or just disconnects.
Nethermind just sends disconnect message on the very first package, which seems correct

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm probably the difference is also in how we handle ^uint64(0) as Origin of GetBlockHeadersRequest. And test does not test what's intended in case of Nethermind (we can't handle max uint64 and immediately disconnect)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check the differences

@flcl42 flcl42 marked this pull request as ready for review October 30, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants