Given the current block height, and given the announced chain tip from other nodes, how does it estimate when it will finish syncing? There is no known time that it takes to verify a block. It can be filled with lots of complicated scripts like
this one and take up to even 12 minutes, or just by one transaction which is a 4 MB long message, and thus can be verified very quickly.
What's the optimal approach? Average verification time of the past x blocks?
Edit: I'm trying to sync the testnet3. I've reached the recent spam phase, and it went from 89 minutes remaining to 100.