doc: clarify `blocksdir` setting #25949

pull mmikeww wants to merge 2 commits into bitcoin:master from mmikeww:patch-1 changing 1 files +1 −1
  1. mmikeww commented at 12:06 AM on August 29, 2022: none

    I couldn't figure out why Core was creating a new blocks\ dir one extra level deep

    Its because the blocksdir= setting demands the parent folder. Core GUI menu option Help->Command Line Options, explains it properly

    This github doc in this PR is ambiguous and should be changed

    ref https://github.com/bitcoin/bitcoin/pull/14364

  2. clarify `blocksdir` setting dc1b71bb9d
  3. Update doc/files.md
    Co-authored-by: Kristaps Kaupe <kristaps@blogiem.lv>
    0356cd8acc
  4. in doc/files.md:48 in dc1b71bb9d outdated
      44 | @@ -45,7 +45,7 @@ Chain option                   | Data directory path
      45 |  
      46 |  Subdirectory       | File(s)               | Description
      47 |  -------------------|-----------------------|------------
      48 | -`blocks/`          |                       | Blocks directory; can be specified by `-blocksdir` option (except for `blocks/index/`)
      49 | +`blocks/`          |                       | Blocks directory; can be changed by specifying the parent dir with the `-blocksdir` option (except for `blocks/index/`)
    


    kristapsk commented at 12:29 AM on August 29, 2022:
    `blocks/`          |                       | Blocks directory; can be changed by specifying the parent directory with the `-blocksdir` option (except for `blocks/index/`)
    
  5. maflcko renamed this:
    clarify `blocksdir` setting
    doc: clarify `blocksdir` setting
    on Aug 29, 2022
  6. glozow added the label Docs on Aug 29, 2022
  7. in doc/files.md:48 in 0356cd8acc
      44 | @@ -45,7 +45,7 @@ Chain option                   | Data directory path
      45 |  
      46 |  Subdirectory       | File(s)               | Description
      47 |  -------------------|-----------------------|------------
      48 | -`blocks/`          |                       | Blocks directory; can be specified by `-blocksdir` option (except for `blocks/index/`)
      49 | +`blocks/`          |                       | Blocks directory; can be changed by specifying the parent directory with the `-blocksdir` option (except for `blocks/index/`)
    


    jonatack commented at 3:56 PM on August 29, 2022:

    Core GUI menu option Help->Command Line Options, explains it properly

    Yes, as does ./src/bitcoind -h | grep -A3 blocksdir, which is the help documentation on how to use the -blocksdir option.

    I think the vocation of files.md is to describe the role of each file/directory and not how to use configuration options, so the help docs would be the right place to maintain this information without redundancy.


    mmikeww commented at 7:52 PM on August 29, 2022:

    Quite right that the true documentation is maintained elsewhere. But don't you agree that this doc is unclear? And if so then why not fix it? Or remove the blocksdir note altogether


    Zero-1729 commented at 7:56 AM on September 5, 2022:

    NACK

    Though this doc may not contain much detail about the usage of -blocksdir, it's certainly not the best place to make usage clarifications; as @jonatack has also mentioned, the file's purpose isn't explicitly for config options usage info.

    If the user needs more clarity on the -blocksdir option, they can already check the usage either through ./src/bitcoind -h | grep -A3 blocksdir or Help->Command Line Options, for example.


    kouloumos commented at 3:06 PM on October 28, 2022:

    I think that the proposed changed is more confusing. Someone reading this document will first read this https://github.com/bitcoin/bitcoin/blob/1bad29fe02096b269858b192a4a91c785a44e505/doc/files.md?plain=1#L35

    Which implicitly says that the blocks directory is chain-specific. Therefore the blocksdir= is indeed specifying the general/parent/all-chains blocks directory because it must somehow separate between chains, which does by creating chain-specific folders one level deeper.

  8. jarolrod commented at 3:23 AM on September 6, 2022: member

    Concept 0

    This file describes roles. We just shouldn't duplicate usage information across different files. As stated in the PR description, and in other reviews here, usage is already properly documented in the appropriate areas.

  9. DrahtBot commented at 4:44 AM on September 23, 2022: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.

  10. maflcko commented at 3:10 PM on October 28, 2022: member

    Closing for now due to controversy

  11. maflcko closed this on Oct 28, 2022

  12. bitcoin locked this on Oct 28, 2023

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-04-22 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me