hive icon indicating copy to clipboard operation
hive copied to clipboard

simulators/ethereum/sync: reduce finalized block distance to zero

Open RomanHodulak opened this issue 2 months ago • 3 comments

Currently, the ethereum/sync test waits for the other peer to sync to head block.

However, the other peer only syncs to latest finalized block.

This test will therefore never pass if the latest finalized block is not the head block.

This was not a problem until this commit 8d692b48ee421100aa3d4ed2d622f75079d6602c introduced a finalized distance of fifty.

Hence, the solution is to reduce the finalized distance to zero.

This change matches the original behavior of the test before it started failing for most of the clients.

RomanHodulak avatar Oct 29 '25 12:10 RomanHodulak

Thanks for the comment. I added the finalized distance as an experiment because there were some issues. I'm curious to hear why you say the client only syncs to the finalized block? Why does it not sync to the head block?

fjl avatar Oct 29 '25 13:10 fjl

Still curious why it only syncs to the finalized block and not head.

fjl avatar Nov 26 '25 14:11 fjl

Still curious why it only syncs to the finalized block and not head.

yep, this was a problem on our side, live sync was not triggered after backfill was completed, fixed by https://github.com/paradigmxyz/reth/pull/19390 we were not aware of this issue because of the regular FCUs from the CL in normal operation, the test helped to find the issue!

fgimenez avatar Nov 26 '25 14:11 fgimenez