Tx database size (blkindex.dat) #1599

issue Diapolo opened this issue on July 16, 2012
  1. Diapolo commented at 12:04 PM on July 16, 2012: none

    I'm asking myself and repeat a question I read on the forums, what happens if a nodes blkindex.dat grows larger than what we allow for blk000x.dat or (if that size-limit doesn't matter here) larger that the max FAT32 filesize (4 G(i)B - 1 Byte AFAIK)?

    Seems like "blkindex.dat" is also hard-coded in some places. Comments / ideas?

  2. gavinandresen commented at 2:22 PM on July 18, 2012: contributor

    See http://doc.gnu-darwin.org/am_misc/dbsizes.html

    Short answer: blkindex.dat will eventually break if it gets bigger than the underlying filesystem supports.

    I would vote for "Don't run a full bitcoin node on a FAT32 filesystem", along with a tiny bit of code to warn the user if they try to do that (is there a POSIX call to get the maximum supported file size for a given filesystem?)

    Pieter's "ultraprune" work might make blkindex.dat go away before it reaches 4GB, though.

  3. sipa commented at 2:08 PM on July 31, 2012: member

    BDB currently managed blkindex.dat, and I suppose it is as good as handling large files as the underlying OS and filesystem are. I wouldn't worry about this, especially since we're working on several things that will change this radically anyway.

  4. Diapolo commented at 4:10 PM on January 6, 2013: none

    Seems obsolete with the change over to LevelDB, so closing it.

  5. Diapolo closed this on Jan 6, 2013

  6. suprnurd referenced this in commit 4f0618ae8a on Dec 5, 2017
  7. lateminer referenced this in commit 72595d7692 on May 6, 2020
  8. MarcoFalke locked this on Sep 8, 2021
Labels

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-21 18:16 UTC

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