doc: Add detailed info about Bitcoin Core files #16983

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20190929-files changing 1 files +100 −37
  1. hebasto commented at 3:56 PM on September 29, 2019: member

    This PR:

    • provides detailed info about the Bitcoin Core files;
    • does not mention temporary files, e.g., mempool.dat.new and peers.????
  2. DrahtBot added the label Docs on Sep 29, 2019
  3. promag commented at 8:50 PM on September 29, 2019: member

    Overall LGTM. Could mention in PR/commit description that references to 0.8.0 are dropped.

  4. hebasto commented at 5:27 AM on September 30, 2019: member

    Could mention in PR/commit description that references to 0.8.0 are dropped.

    The PR description has been updated.

  5. laanwj commented at 9:39 AM on September 30, 2019: member

    PR/commit description that references to 0.8.0 are dropped.

    I think it makes sense to keep a list the "legacy files" somewhere, so that people encountering them (in old installs) have something to search for, and know they are no longer necessary and can be removed. Even if you drop mention of exact versions and meanings.

  6. hebasto commented at 9:51 AM on September 30, 2019: member

    I think it makes sense to keep a list the "legacy files" somewhere, so that people encountering them (in old installs) have something to search for, and know they are no longer necessary and can be removed. Even if you drop mention of exact versions and meanings.

    Agree. Currently a user can choose any branch from 0.14 to 0.18 in GitHub web interface. Could it be "somewhere" that keeps a list of legacy files?

  7. laanwj commented at 12:50 PM on September 30, 2019: member

    Please keep it in this document.

  8. fanquake added the label Waiting for author on Oct 1, 2019
  9. hebasto commented at 10:35 AM on October 1, 2019: member

    Please keep it in this document.

    Done.

  10. fanquake removed the label Waiting for author on Oct 1, 2019
  11. ch4ot1c commented at 5:14 AM on October 2, 2019: contributor

    Concept ACK.

    I like the direction of this @hebasto. Some suggestions:

    • holds->contains
    • custom->custom format, could even link or add information about the format
    • block chain->blockchain
    • bitcoin.conf could have a reference to the example (share/examples/bitcoin.conf)
    • database/ contains data, not BDB logs
    • Capitalize each line in Description
    • Using datadir/ and wallet_name as literals is confusing
    • * NOTE: could be a blockquote or footnote; regexp->regex
    • ** NOTE: could be a blockquote or footnote, or maybe inlined
    • blocks/index/: How do I set a custom path via CLI?
    • Chain option No option could spell out the -mainnet flag

    Also, here's another interpretation of the table of contents / section titles, if useful:

    1. Datadir location
    2. Datadir layout
    3. Wallet files
      - Default, single wallet layout
      - Multi-wallet layout
    4. Other files
      - QSettings
    5. Legacy files and directories
    
  12. hebasto commented at 12:02 PM on October 2, 2019: member
  13. laanwj commented at 12:10 PM on October 2, 2019: member

    BDB log files are part of the data though—comparable with the journal in file systems, not as in the debug log (which means, most importantly, that it is not safe to just erase them).

  14. doc: Add detailed info about Bitcoin Core files 86b9f92da2
  15. hebasto force-pushed on Oct 2, 2019
  16. hebasto commented at 6:55 PM on October 2, 2019: member

    @ch4ot1c The most part of your suggestions has been implemented. Didn't catch the last two of them:

    • blocks/index/: How do I set a custom path via CLI?

    • Chain option No option could spell out the -mainnet flag

    Would you mind re-wording your ideas?

  17. ch4ot1c commented at 7:27 PM on October 2, 2019: contributor

    Sure -

    • blocks/index/ - Block index; `-blocksdir` option does not affect this path - how do I affect this path?
    • no option (mainnet)->No option (or `-mainnet`)
  18. hebasto commented at 6:03 PM on October 4, 2019: member

    @ch4ot1c

    * `blocks/index/` - `` Block index; `-blocksdir` option does not affect this path `` - how _do_ I affect this path?

    Considering: https://github.com/bitcoin/bitcoin/blob/94d6a18f23ec1add600f04fc7bd0808b7384d829/src/txdb.cpp#L148-L149

    there is no way to affect blocks/index/ path.

    * `no option (mainnet)`->`` No option (or `-mainnet`) ``

    Do we have -mainnet as command-line option?

  19. ch4ot1c commented at 3:54 AM on October 5, 2019: contributor

    -chain=main, but no. Good notes - thanks for mentioning!

  20. ch4ot1c commented at 3:54 AM on October 5, 2019: contributor

    ACK 86b9f92

  21. MarcoFalke commented at 5:53 PM on October 7, 2019: member

    Concept ACK

  22. in doc/files.md:97 in 86b9f92da2
     129 | +`blk000?.dat`  | Block data (custom format, 2 GiB per file); replaced by `blocks/blkNNNNN.dat`<sup>[\[2\]](#note2)</sup> in 0.8.0 | [PR #1677](https://github.com/bitcoin/bitcoin/pull/1677)
     130 | +`addr.dat`     | Peer IP address BDB database; replaced by `peers.dat` in [0.7.0](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.7.0.md) | [PR #1198](https://github.com/bitcoin/bitcoin/pull/1198), [`928d3a01`](https://github.com/bitcoin/bitcoin/commit/928d3a011cc66c7f907c4d053f674ea77dc611cc)
     131 | +
     132 | +## Notes
     133 | +
     134 | +<a name="note1">1</a>. The `/` (slash, U+002F) is used as the platform-independent path component separator in this paper.
    


    laanwj commented at 10:16 AM on October 9, 2019:

    lol @ "in this paper"

  23. laanwj commented at 10:16 AM on October 9, 2019: member

    ACK 86b9f92da25f2768eb29eefd6526320135f39a2f this is much of an improvement

  24. fanquake commented at 1:24 PM on October 9, 2019: member

    @hebasto Can you update the PR description. The crossed out 0.8.0 seems incorrect now.

  25. fanquake added the label Waiting for author on Oct 9, 2019
  26. hebasto commented at 1:55 PM on October 9, 2019: member

    @fanquake

    Can you update the PR description. The crossed out 0.8.0 seems incorrect now.

    Sure ;) Done.

  27. fanquake removed the label Waiting for author on Oct 9, 2019
  28. MarcoFalke commented at 7:58 PM on October 10, 2019: member

    ACK 86b9f92da25f2768eb29eefd6526320135f39a2f

    <details><summary>Show signature and timestamp</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    ACK 86b9f92da25f2768eb29eefd6526320135f39a2f
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUjztQv/cnmPIi2I/WrLg8Tbaj6N4ylQOGWWCt/nMyczT7sjGw1f3x8TP8d9yvi+
    s7SJT+IlpBcAZXWsm7RhaCOM9R1K/1dtazMM/ZChKGfVJ+8Ey8KTfSEwayfORkDD
    fTBen4typXXyHhAzoyLyTAr35vEH/DoFS8MtBD/Rm48Mo4HgY2DVBfAL8DhpXqVE
    AOyJV1GGMKwsAvmoLpJpieSkBzdugxN7x9zwfH9rCKa9F6yUGmLG0Y8W/gMQ4Zfn
    5xEHE1BqW9FOzWHWjk32mZN3DsTsbZvfwdaDQ3N/2sYFbcxU/1RT5rCbKdeJIV1l
    X2sLXs0yJC7CTa+9OHwlrPpzJtr6Rcua/VpnR4qRJaU+4G0mX0k1mmmaPx1HW4Lt
    hOvwuPgOM5QtGnodZI32alYzkLx8qOkbpolPMmYULMS1zGU1IuhIdKO5sUpBJLAo
    MdUEGA4xnofNlflcGEY+gkpMAtKaj4cXjLOUnx0mlWXICQL7etdWCYBlaOdNezbx
    w8YoInm9
    =LO4O
    -----END PGP SIGNATURE-----
    

    Timestamp of file with hash 9f2ff8ea4a42ee5db2f108e51e215fb6faf8857556cb207b0fe9722786a9906b -

    </details>

  29. MarcoFalke referenced this in commit 08ed87e887 on Oct 10, 2019
  30. MarcoFalke merged this on Oct 10, 2019
  31. MarcoFalke closed this on Oct 10, 2019

  32. hebasto deleted the branch on Oct 11, 2019
  33. sidhujag referenced this in commit 889c5975d2 on Oct 11, 2019
  34. hebasto commented at 8:06 PM on October 14, 2019: member

    @ch4ot1c

    * `no option (mainnet)`->`` No option (or `-mainnet`) ``

    Oh! I missed that #16680 has been merged recently. It provides -chain=main ;)

  35. jasonbcox referenced this in commit 86009464c7 on Oct 20, 2020
  36. MarcoFalke locked this on Dec 16, 2021

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:14 UTC

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