diff options
author | fanquake <fanquake@gmail.com> | 2020-01-05 11:23:51 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-01-05 11:26:26 +0800 |
commit | b949ac9697a6cfe087f60a16c063ab9c5bf1e81f (patch) | |
tree | 4456d5f5fdf665dbba259afe8d8fb18b265ec565 /contrib/macdeploy/detached-sig-create.sh | |
parent | da279fe0eef91402329f270cfdf74065fed7eb11 (diff) | |
parent | 582e66b6e75d58033987a7b0474226cfdd724ce0 (diff) |
Merge #17393: doc: Added regtest config for linearize script
582e66b6e75d58033987a7b0474226cfdd724ce0 doc: Added regtest config for linearize script (Gr0kchain)
Pull request description:
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:
./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
```
$ ./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)
```
ACKs for top commit:
fanquake:
ACK 582e66b6e75d58033987a7b0474226cfdd724ce0
Tree-SHA512: 699e92e740e68e2e5190ba37538efbbe3e4d4e725ebd6af704a0cf5517683b691754f7ea097bf840845d2b53b793c63258d406e9bd37922db810cf58bed053c3
Diffstat (limited to 'contrib/macdeploy/detached-sig-create.sh')
0 files changed, 0 insertions, 0 deletions