What is this?
This adds a feature to set a delay between the blocks at the initial download.
Why?
A few weeks ago I was downloading the blockchain on my systems drive (which is an SSD). I usually download the blockchain on an external drive which is an HDD. During the sync on my SSD my Computer was completely unusable because there were too many read and write operations. This PR adds a feature to throttle the block downlad to make the Computer usable during that time.
Testing
Just add a -blockpause=1000 to add a pause of ten seconds. The default is 0 miliseconds
Notes
This is being ignored if the regtest chain is in use
Log
Running ./bitcoind --blockpause=10000
2019-08-29T19:42:43Z UpdateTip: new best=00000000faac558a7a5266c3c678e53b53b88a619b00dd825395b8e4ca44cdd9 height=9511 version=0x00000001 log2_work=45.215555 tx=9602 date='2009-04-02T02:23:37Z' progress=0.000022 cache=0.0MiB(1txo)
2019-08-29T19:42:53Z UpdateTip: new best=000000009be075c2742955e8cad5aa09390e2e7feffdfecc371bdcae0fb60951 height=9512 version=0x00000001 log2_work=45.215707 tx=9603 date='2009-04-02T02:27:04Z' progress=0.000022 cache=0.0MiB(2txo)
2019-08-29T19:43:03Z UpdateTip: new best=00000000c60596cdb860839242211d9a17ba734e397636135e7744303d189a0b height=9513 version=0x00000001 log2_work=45.215858 tx=9604 date='2009-04-02T01:41:48Z' progress=0.000022 cache=0.0MiB(3txo)
2019-08-29T19:43:13Z UpdateTip: new best=0000000052ab68c20deabfd537a4f40ce88bbd29bdc91b86fb791a701a7af723 height=9514 version=0x00000001 log2_work=45.21601 tx=9605 date='2009-04-02T01:59:40Z' progress=0.000022 cache=0.0MiB(4txo)
See timestamps