Break into two steps:
- Generate hash list
- Build data file(s) from local bitcoind blocks/ directory.
This supports building one large bootstrap.dat, or multiple smaller blocks/blkNNNNN.dat files.
Break into two steps:
This supports building one large bootstrap.dat, or multiple smaller blocks/blkNNNNN.dat files.
12 | + 13 | +# bootstrap.dat input/output settings (linearize-data) 14 | netmagic=f9beb4d9 15 | -max_height=279000 16 | -output=bootstrap.dat 17 | +input=/home/jgarzik/.bitcoin/blocks
Can we not hard-code /home/jgarzik (can we default to $HOME/.bitcoin/blocks or so?)
161 | + if 'netmagic' not in settings: 162 | + settings['netmagic'] = 'f9beb4d9' 163 | + if 'input' not in settings: 164 | + settings['input'] = 'input' 165 | + if 'hashlist' not in settings: 166 | + settings['hashlist'] = 'hashlist.out'
Can we keep this consistent with hashlist.txt?
Tested ACK.
Break into two steps:
* Generate hash list
* Build data file(s) from local bitcoind blocks/ directory.
This supports building one large bootstrap.dat, or multiple
smaller blocks/blkNNNNN.dat files.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4757_b4a72a75b4795dffbe973b0ae287343df2dac13c/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.