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.
fanquake added the label Refactoring on Jan 19, 2017
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
droark force-pushed on Jan 25, 2017
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.
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.
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.
droark
commented at 3:17 PM on January 27, 2017:
contributor
@laanwj - Gotcha. I'll prepare some tests as time allows.
laanwj merged this on Feb 2, 2017
laanwj closed this on Feb 2, 2017
laanwj referenced this in commit ae972a5e99 on Feb 2, 2017
droark deleted the branch on Feb 6, 2017
codablock referenced this in commit d30da59e4f on Jan 19, 2018
codablock referenced this in commit 3dcbfc744a on Jan 23, 2018
andvgal referenced this in commit 0bca3ab791 on Jan 6, 2019
CryptoCentric referenced this in commit dbf6888352 on Feb 27, 2019
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