/eth/syncing returns the syncing status, but the design for this allows the replica to sync up before dtl loads all l2 data. Therefore, the syncing always returns false for l2geth.
This PR introduces the new api endpoint /eth/syncing/l2. This returns the actual syncing status, so we can query the actual highest l2 block that needs to be synced and current transaction index that dtl has synced.
/eth/syncing
returns the syncing status, but the design for this allows the replica to sync up before dtl loads all l2 data. Therefore, thesyncing
always returnsfalse
for l2geth.This PR introduces the new api endpoint
/eth/syncing/l2
. This returns the actual syncing status, so we can query the actualhighest l2 block
that needs to be synced and current transaction index that dtl has synced.