I'd like to focus on the syncing aspect and will greatly appreciate any help in terms of optimising the performance.
My understanding is that the current lightweight client syncs only the block headers (80 bytes) which prevents downloading of the entire blockchain.
However, I'd wanna try further optimising this to make it sync even faster.
lib/network.py
lib/blockchain.py
a good place to start looking
Thanks for the good advice.
I'm now trying to measure the time taken for blockchain_headers to be downloaded during the first sync. However I am unable to find the right place/code to insert into. Do you have any idea on how I can track the time so that I may further optimise it?