How can I decrease the lag of my
I'm playing around with
tezos-node, and I noticed that my node lags behind the blockchain by about 10 seconds.
Specifically, I'm seeing a difference of around 10 seconds when poll the RPC endpoint
chains/main/blocks until it gives me a new block* and then compare the new block's timestamp to system time. In other words, my node is lagging behind the blockchain by about 10 seconds.
I'm a total noob here, but this seems like a long time. I'm guessing the two main sources of latency are 1) the time it takes the new block to arrive at my node (network latency), and 2) the time it takes my node to verify the new block. Naively I'd expect 1) to take about a second and 2) to take even less time.
So, what's going on here, and what can I do? I haven't tried playing with the peers list, but is that something I should consider? Is there a guide on performance-tuning
tezos-node I should look into?
*I'm using Taquito
getBlock to do this BTW.
EDIT: Corrected RPC endpoint