ruimarinho / bitcoin-core

A modern Bitcoin Core REST and RPC client.
477 stars 186 forks source link

Sync with multiple cores #101

Closed tommyjs007 closed 4 years ago

tommyjs007 commented 4 years ago

I'm syncing my node on 32 CPUs, and it's super slow.

Obviously, syncing doesn't go in parallel. I wonder if there is any fundamental obstacle for "divide and conquer" way of doing it.

So let's say we have 62 blocks, and 2 CPUs. We divide it by half, and the first CPY syncs 1-32 blocks, and 2nd cpu syncs 33-64 blocks, after both tasks are completed, we are checking that 32 and 33 blocks match.

Am I missing something? This feature seems so simple to me but somehow not implemented.