reddcoin-project / reddcoin-3.10

Reddcoin: the digital social currency
http://www.reddcoin.com
MIT License
287 stars 114 forks source link

Why does downloading the 4GB blockchain take 26 hours? #128

Closed HeRo002 closed 5 years ago

HeRo002 commented 6 years ago

I don't know if this is the right place to ask this question, but with my Internet connection downloading 4 GB should take 20 minutes, not 26 hours. And why has my (old) CPU been working hard all these hours?

HenryYoung42 commented 6 years ago

The performance limiting factor with Reddcoin Core 2.1 blockchain sync is rather more on the CPU side than the bandwidth side. There is a huge amount of number crunching to do - every transaction and every block is re-validated which entails a great deal of very inefficiently implemented (in that version) cryptographic primitives. That should accelerate significantly when Reddcoin Fast comes out, which will rebase the Reddcoin code base from Bitcoin 0.9 (circa 2014) to Bitcoin 0.16.

Running on a faster CPU makes a proportionate difference also.

HenryYoung42 commented 6 years ago

Incidentally, loading the blockchain from a local file takes around 24 hours on my 2011 vintage laptop. It's very definitely a CPU limited activity. Open Task Manager and you'll see your CPU spending a lot of time at 100% and the applications user interface responding poorly.

HeRo002 commented 6 years ago

Thank you for your elaborate answer! My laptop is also from 2011, and yes - I could see the CPU working hard in Task Manager, but not all of the time! It seems like a very irregular process.

HenryYoung42 commented 6 years ago

You will see a dramatic improvement once the code base of Reddcoin moves up to or past Bitcoin 0.12. Previously all the crypto primitives were implemented in the OpenSSL library which is very general purpose but poorly optimised. Bitcoin later moved over to a slimmed down and heavily optimised implementation developed by Pieter Wuille (a veritable technical development god).

HeRo002 commented 6 years ago

OK! Thanks again.

ghost commented 5 years ago

What is the status of this? Syncing with the bootstrap file is still pathetically slow...

HenryYoung42 commented 5 years ago

It is still an in-progress project which I have not touched for a few months - sorry for that. Real life keeps getting in the way.

TechAdeptRDD commented 5 years ago

Current update; Reddcoin Core will be upgrading shortly to electrumx (headers-first optimized) sync. Speed of blockchain sync has tested as much improved. Please download new wallet when available