diff options
| author | Gr0kchain <[email protected]> | 2019-11-06 11:57:27 +0200 |
|---|---|---|
| committer | gr0kchain <[email protected]> | 2019-11-07 08:07:10 +0200 |
| commit | 582e66b6e75d58033987a7b0474226cfdd724ce0 (patch) | |
| tree | b53892a60a92acbc8c986275e92589c4dd87c22b /src/httpserver.cpp | |
| parent | Merge #17388: Add missing newline in util_ChainMerge test (diff) | |
| download | discoin-582e66b6e75d58033987a7b0474226cfdd724ce0.tar.xz discoin-582e66b6e75d58033987a7b0474226cfdd724ce0.zip | |
doc: Added regtest config for linearize script
Updated the example-linearize.cfg file to include support for the regtest chain network config which is used by the ./linearize-data.py
Problem:
Without the regtest magic, genesis hash and path config, the `linearize-data.py` script cannot generate a bootstrap.dat file.
Example of error:
./linearize-data.py ./linearize.cfg
Read 102 hashes
Genesis block not found in hashlist
Solution:
Added netmagic, genesis and input example parameters to file.
Resolution
1. Starting bitcoind in regtest mode
2. bitcoin-cli generatetoaddress 101 $(bitcoin-cli getnewaddress)
3. ./linearize-hashes.py ./linearize.cfg > ./hashlist.txt
4. ./linearize-data.py ./linearize.cfg
Example after fix:
$ ./linearize-data.py ./linearize.cfg
Read 102 hashes
Input file /Users/gr0kchain/.bitcoin/regtest/blocks/blk00000.dat
Output file /Users/gr0kchain/Downloads/bootstrap.dat
Done (102 blocks written)
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions