Aimeedeer / realtps

https://realtps.net
MIT License
93 stars 25 forks source link

Find some solution to the problem of RPC reporting incorrect highest block #77

Open brson opened 1 year ago

brson commented 1 year ago

It happens with multiple chains:

For chains that have this problem, we can enter a state where we are very likely to hit it, fail the import, delay, retry, and keep failing. I would expect the existing 'fast-forwarding' mechanism to help with this situation, but it doesn't seem to.

Recently, hedera got into this situation - 2 million blocks behind, each rescan would hit a block that couldn't be retreived; import would restart, fast-forward, repeat.

I imagine this is because these RPC's are load balancing a cluster that doesn't agree on the highest block, but I don't know.