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. droark cross-referenced this on Jan 19, 2017 from issue Bug fix: Update the instance variable self.lastDate (not the locally scoped variable lastDate) by practicalswift
  3. fanquake added the label Refactoring on Jan 19, 2017
  4. 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
  5. droark force-pushed on Jan 25, 2017
  6. 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.

  7. 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.

  8. 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.

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

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

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

  12. laanwj referenced this in commit ae972a5e99 on Feb 2, 2017
  13. droark deleted the branch on Feb 6, 2017
  14. codablock referenced this in commit d30da59e4f on Jan 19, 2018
  15. codablock referenced this in commit 3dcbfc744a on Jan 23, 2018
  16. dgenr8 cross-referenced this on Jun 1, 2018 from issue Cherry-pick updates to contrib/linearize by dgenr8
  17. andvgal referenced this in commit 0bca3ab791 on Jan 6, 2019
  18. CryptoCentric referenced this in commit dbf6888352 on Feb 27, 2019
  19. bitcoin 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-05-19 06:55 UTC