hebasto
commented at 6:25 PM on October 5, 2018:
member
The blocks directory is net specific by definition.
Also this prevents the side effect of calling GetBlocksDir(false) in the non-mainnet environment.
Currently a new node creates an unused blocks\ directory in the root of the data directory when -testnet or -regtest is specified.
hebasto renamed this: utils and libraries: Make blockdir always net specific utils and libraries: Make 'blocksdir' always net specific on Oct 5, 2018
DrahtBot
commented at 7:06 PM on October 5, 2018:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#13746 (-masterdatadir for datadir bootstrapping by kallewoof)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Concept ACK, so this only affects the case where the user has explicitly specified a directory with the -blocksdir argument right?
This PR works regardless of the -blocksdir option.
sipa
commented at 7:09 PM on October 12, 2018:
member
Does this risk breaking any existing configurations?
meshcollider
commented at 11:06 PM on October 12, 2018:
contributor
@sipa that was my concern, the actual behaviour looks unchanged but I think now if you specify a base directory with -blocksdir it will error if the child directory doesn't exist, previously it would just create it? Which could be annoying for users...
hebasto
commented at 10:42 AM on October 13, 2018:
member
... I think now if you specify a base directory with -blocksdir it will error if the child directory doesn't exist, previously it would just create it?
The behaviour is unchanged. If you specify a base directory with -blocksdir and if the child directory doesn't exist it will an error both on master and on this PR.
MarcoFalke added the label Refactoring on Oct 23, 2018
MarcoFalke removed the label Needs release notes on Oct 23, 2018
MarcoFalke removed the label Refactoring on Oct 23, 2018
DrahtBot added the label Needs rebase on Nov 5, 2018
Make blockdir always net specific
The blocks directory is net specific by definition.
Also this prevents the side effect of calling GetBlocksDir(false) in the
non-mainnet environment.
c3f1821ac7
hebasto force-pushed on Nov 5, 2018
hebasto
commented at 11:29 AM on November 5, 2018:
member
Rebased.
DrahtBot removed the label Needs rebase on Nov 5, 2018
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-20 06:54 UTC