Skip to content

Conversation

cskiraly
Copy link
Contributor

If we have no nodes to add in a refresh, and the table is empty, it is useless to do lookups.

This was triggering a 3 second wait for a timeout in the initialization code in some synthetic tests when no bootnodes were added, making some hive tests fail.
This fixes ethereum/hive#1335

If we have no nodes to add in a refresh, and the table is empty,
it is useless to do lookups.

This was triggering a 3 second wait for a timeout in the
initialization code, making some hive tests fail.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
@cskiraly
Copy link
Contributor Author

Note that there are a few more places we could have avoided this timeout. I've added the fix at this point, as making the lookup is useless, and it fixes the issue in itself.

We can also check and fix:

  • why the lookup was timing out if there are no nodes to start from
  • why doRefresh was called synchronously as part of the iterator initialisation.

@fjl
Copy link
Contributor

fjl commented Sep 9, 2025

This is also fixed by #32518

@fjl fjl closed this Sep 9, 2025
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.

devp2p/snap: test that runs first fails, independent of order

3 participants