-blocksdir not working with 0.17 #14351

issue sangaman opened this issue on September 29, 2018
  1. sangaman commented at 4:46 AM on September 29, 2018: contributor

    I was trying to test the new blocksdir option from #12653 but could not get it to work regardless of whether I set it in the config file or passed -blocksdir as an argument. blocksdir shows up in bitcoind --help so it should be working, but every time I tried the opening log output would show LevelDB loading from the default ~/.bitcoin/blocks dir where there were no blocks, and then error out immediately.

    I'm using a symlinked directory currently instead and that works, fwiw.

    This is on Ubuntu 18.04, compiled from 0.17.0-rc4 on an Odroid-HC2 32 bit arm device. The setup I'm using has the main .bitcoin datadir on an SSD and the blocks directory on an HDD.

  2. Sjors commented at 11:51 AM on September 30, 2018: member

    The .dat files should be in blocksdir, but the index is still in ~/.bitcoin/blocks/index.

  3. sangaman commented at 1:03 PM on September 30, 2018: contributor

    Oh thank you very much. I was not aware, I will give that a shot.

  4. sangaman commented at 4:07 AM on October 1, 2018: contributor

    That did indeed work. For the record the resulting structure is:

    <datadir>/blocks/index <-- Where all .ldb files go <blocksdir>/blocks <-- Where all blk*.dat files go

    I'll see if I can help document this more clearly.

  5. sangaman closed this on Oct 1, 2018

  6. DrahtBot locked this on Sep 8, 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-28 03:15 UTC

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