0xPolygonHermez / cdk-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
35 stars 39 forks source link

[Sequencer/RPC] using web sockets has a lag on new headers #1216

Closed hexoscott closed 1 month ago

hexoscott commented 1 month ago

there appears to be a 30 second~ lag when subscribing to new heads. We need to investigate why this happens.

hexoscott commented 1 month ago

This lag only appears on the sequencer because it only runs the finalise stage after the batch has closed. RPC nodes immediately notify for each new block received. The lag between blocks is attributed to the executors responding slowly so there is a delay in the RPC being notified for each new block.