OffchainLabs / go-ethereum

GNU Lesser General Public License v3.0
54 stars 94 forks source link

Subcription always delays ~50 blocks #256

Closed my2457 closed 11 months ago

my2457 commented 11 months ago

I ran full node as following https://docs.arbitrum.io/node-running/how-tos/running-a-full-node

However, after I subscribe with {"jsonrpc": "2.0","id":2,"method":"eth_subscribe","params":["newHeads"]} on websocket, I noticed that there's ~50 blocks lagging compared to arbiscan.io and the logs on the nitro-node seem to show that the blocks in my local node itself are up to date, indicating that the RPC subscription only receive blocks are ~50 behind (I judge this through its log created block l2Block=<block.number> l2BlockHash= where actually is up to date compared to arbiscan.io

` I run it on 2TB SSD with 32GB RAM, which shouldn't have issues catching up? Is this a bug or I missed anything here?