doc: Added regtest config for linearize script #17393

pull gr0kchain wants to merge 1 commits into bitcoin:master from gr0kchain:patch-2 changing 1 files +5 −0
  1. gr0kchain commented at 10:04 AM on November 6, 2019: contributor

    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)
    
  2. laanwj commented at 10:40 AM on November 6, 2019: member

    Concept ACK, but please improve your commit message from just "Updated config file".

  3. laanwj added the label Docs on Nov 6, 2019
  4. gr0kchain renamed this:
    Updated config file to include regtest
    Updated config file for linearize contribution scripts to include support for regtest chain configuration
    on Nov 6, 2019
  5. gr0kchain commented at 11:09 AM on November 6, 2019: contributor

    Updated commit message as requested

  6. laanwj commented at 11:12 AM on November 6, 2019: member

    Thanks, but now it's too long long, please stick to the "consisting of a short subject line (50 chars max), a blank line and explanatory text as separate paragraph(s)" format.

    Please read https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md especially "Contributor Workflow" and "Squashing Commits".

  7. gr0kchain commented at 11:47 AM on November 6, 2019: contributor

    Thanks for the guidance, and apologies for the multi commit message updates, had some local config issues. Seems fine now with the updated log messages as per the documentation guidelines provided.

  8. MarcoFalke commented at 12:49 PM on November 6, 2019: member
  9. promag commented at 3:17 PM on November 6, 2019: member

    ACK after squash.

  10. fanquake added the label Waiting for author on Nov 6, 2019
  11. 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)
    582e66b6e7
  12. gr0kchain force-pushed on Nov 7, 2019
  13. gr0kchain commented at 6:11 AM on November 7, 2019: contributor

    Squashed the unnecessary noise and consolidated into a single commit with updated comment as per the guidelines

  14. fanquake removed the label Waiting for author on Nov 8, 2019
  15. fanquake renamed this:
    Updated config file for linearize contribution scripts to include support for regtest chain configuration
    doc: Added regtest config for linearize script
    on Jan 4, 2020
  16. fanquake approved
  17. fanquake commented at 9:19 AM on January 4, 2020: member

    ACK 582e66b6e75d58033987a7b0474226cfdd724ce0

  18. fanquake referenced this in commit b949ac9697 on Jan 5, 2020
  19. fanquake merged this on Jan 5, 2020
  20. fanquake closed this on Jan 5, 2020

  21. sidhujag referenced this in commit c7a50bb486 on Jan 5, 2020
  22. sidhujag referenced this in commit 95fe775486 on Nov 10, 2020
  23. PastaPastaPasta referenced this in commit 0dd58db366 on Jun 27, 2021
  24. PastaPastaPasta referenced this in commit c7617e0d30 on Jun 28, 2021
  25. PastaPastaPasta referenced this in commit 31df14036b on Jun 29, 2021
  26. PastaPastaPasta referenced this in commit 6a95d69344 on Jul 1, 2021
  27. PastaPastaPasta referenced this in commit 10d1ac2a49 on Jul 1, 2021
  28. PastaPastaPasta referenced this in commit 964d46fa3c on Jul 14, 2021
  29. PastaPastaPasta referenced this in commit ecbaf20937 on Jul 14, 2021
  30. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me