I just created a local Binance Smart Chain full node 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
Internet speed: 940 mbps up/down fiber
I set up the full node 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 full node.
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 full node 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 full node behind https://bsc-dataseed.binance.org/? I was expecting to be one or two blocks ahead of the bsc mainnet with my specs, not one block behind.