Local fullnode is one block behind

Cryptocurrency News and Public Mining Pools

Local fullnode is one block behind

I just created a local Binance Smart Chain fullnode on my PC with the following specs:

OS: Linux running on Windows Subsystem for Linux

Storage: 1TB SSD (Samsung 980 Pro)

CPU: AMD Ryzen 7 5800x

Ram: 32GB

Internet speed: 940 mbps up/down fiber

I set up the fullnode late last night and was surprised to see that it was synced within about 14 hours. I verified that it was synced by using `eth.syncing` in the `geth` console, checked the output of my logs, and verified that I was pulling the most recent block by using `web3.eth.get_block('latest')` from the Python `Web3.py` library while connected to localhost. However, I was doing some testing and noticed that sometimes `web3.eth.get_block('latest')` from https://bsc-dataseed.binance.org/ was pulling later blocks than my local fullnode.

For example, these commands were run in succession:

# connected to https://bsc-dataseed.binance.org/ In: web3_bsc.eth.get_block('latest')['number'] Out: 8079724 # connected to local fullnode In: web3_local.eth.get_block('latest')['number'] Out: 8079723 # connected to https://bsc-dataseed.binance.org/ In: web3_bsc.eth.get_block('latest')['number'] Out: 8079724 

How is my local fullnode behind https://bsc-dataseed.binance.org/? I was expecting to be one or two blocks ahead of https://bsc-dataseed.binance.org/ with my specs, not one block behind.

submitted by /u/LeetviHackerman
[link] [comments]