Fix various minor linearization script issues #9580

pull droark wants to merge 1 commits into bitcoin:master from droark:linearizefix changing 3 files +41 −18
  1. droark commented at 6:24 AM on January 19, 2017: contributor
    • The last-timestamp-encountered variable wasn’t being used properly. Rewrite code to properly allow for new blockchain files to be written when split by month.
    • Properly set a blockchain file’s access and modify times.
    • Add a “debug output” option to quiet certain output that might not always be desirable.
    • Update the README.

    Inspired by #9529, of which this PR is a significant expansion.

  2. fanquake added the label Refactoring on Jan 19, 2017
  3. Fix various minor linearization script issues
    - The last-timestamp-encountered variable wasn’t being used properly. Rewrite code to properly allow for new blockchain files to be written when split by month.
    - Properly set a blockchain file’s access and modify times.
    - Add a “debug output” option to quiet certain output that might not always be desirable.
    - Update the README.
    b9d95bd9a1
  4. droark force-pushed on Jan 25, 2017
  5. laanwj commented at 9:21 AM on January 26, 2017: member

    Concept ACK.

    BTW: Not necessarily in this pull, but if we're going to do active development on this script it would make sense to add a test. This does not necessarily need to be part of "make check" or Travis, but something that can be run separately and just does some automatic tests would make sense, I think.

  6. droark commented at 4:39 AM on January 27, 2017: contributor

    @laanwj - Good point. I'll create some tests. I'll rework this PR if I have time and submit a new PR if I don't. Any thoughts on where they should go? I feel like perhaps a "test" subfolder would be best. Putting them in qa/rpc-tests or src/test wouldn't really work. Maybe contrib/test could be created so that everything's in one place? I'm open to ideas.

    Thanks.

  7. laanwj commented at 9:14 AM on January 27, 2017: member

    I'd say either putting the test script in contrib/linearize itself or creating a test subfolder in contrib/linearize appeals the most to me. A test directory under contrib would make less sense: the stuff in contrib is so far apart, that grouping things would be next to nonsensical.

  8. droark commented at 3:17 PM on January 27, 2017: contributor

    @laanwj - Gotcha. I'll prepare some tests as time allows.

  9. laanwj merged this on Feb 2, 2017
  10. laanwj closed this on Feb 2, 2017

  11. laanwj referenced this in commit ae972a5e99 on Feb 2, 2017
  12. droark deleted the branch on Feb 6, 2017
  13. codablock referenced this in commit d30da59e4f on Jan 19, 2018
  14. codablock referenced this in commit 3dcbfc744a on Jan 23, 2018
  15. andvgal referenced this in commit 0bca3ab791 on Jan 6, 2019
  16. CryptoCentric referenced this in commit dbf6888352 on Feb 27, 2019
  17. MarcoFalke locked this on Sep 8, 2021

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-16 18:15 UTC

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