Skip to content

Conversation

@droark
Copy link
Contributor

@droark droark commented Jan 19, 2017

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

- 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.
@laanwj
Copy link
Member

laanwj commented Jan 26, 2017

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
Copy link
Contributor Author

droark commented Jan 27, 2017

@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
Copy link
Member

laanwj commented Jan 27, 2017

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
Copy link
Contributor Author

droark commented Jan 27, 2017

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

@laanwj laanwj merged commit b9d95bd into bitcoin:master Feb 2, 2017
laanwj added a commit that referenced this pull request Feb 2, 2017
b9d95bd Fix various minor linearization script issues (Douglas Roark)
@droark droark deleted the linearizefix branch February 6, 2017 20:17
codablock pushed a commit to codablock/dash that referenced this pull request Jan 23, 2018
b9d95bd Fix various minor linearization script issues (Douglas Roark)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
b9d95bd Fix various minor linearization script issues (Douglas Roark)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants