I am running a mainnet node locally, but it is consistently lagging about 2 blocks behind the public node (mainnet.fuel.network).
I am using default configs specified in the tutorial .
I have checked the latest block height obtained from the chain_info() function of Rust SDK on both my node and the public node.
The time taken to retrieve the block height is about 5ms for the former and 200ms for the latter, so I don’t believe the execution time is affecting this.
My machine meets the hardware requirements sufficiently:
CPU: 16 Core
Memory: 128GB
Storage: 4TB
Are there any optional variable settings to resolve the delay?
mainnet-x86_64-unknown-linux-gnu (default)
forc : 0.66.2
- forc-client
- forc-deploy : not found
- forc-run : not found
- forc-crypto : not found
- forc-debug : not found
- forc-doc : not found
- forc-fmt : not found
- forc-lsp : not found
- forc-tx : not found
- forc-wallet : 0.11.0
fuel-core : 0.40.0
fuel-core-keygen : 0.40.0
I have tried RPC node providers like Infura, Alchemy, and Blast, but the results were not singificantly different. The next possible cause could be network performance, but I have been running nodes on several networks and have not experienced delays like this. Currently, I am checking the configuration variables with fuel-core run --help and trying to modify some of them.