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:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
fanquake added the label
Utils/log/libs
on Oct 5, 2018
ken2812221
commented at 4:11 pm on October 6, 2018:
contributor
Concept ACK. This seem to require a release note.
MarcoFalke added the label
Needs release notes
on Oct 7, 2018
MarcoFalke
commented at 4:58 am on October 9, 2018:
member
Needs tests before merge
meshcollider
commented at 2:40 pm on October 12, 2018:
contributor
Concept ACK, so this only affects the case where the user has explicitly specified a directory with the -blocksdir argument right?
hebasto
commented at 2:49 pm on October 12, 2018:
member
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
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
laanwj
commented at 7:06 am on November 23, 2018:
member
This absolutely needs testing in a functional test.
Also to make it clear what behavior is failing right now, and which will pass after this.
Improve blocksdir functional test.
A new node should not create an unused `blocks` directory in the root of
the data directory when `-testnet` or `-regtest` is specified.
e4a0c3547e
hebasto
commented at 3:23 pm on November 30, 2018:
member
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: 2024-12-22 18:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me