why need both level db for index of blockchain and Berkeley db for wallet? #4123

issue philsong opened this issue on May 3, 2014
  1. philsong commented at 2:56 PM on May 3, 2014: contributor

    why cannot only use one for them?

  2. laanwj commented at 3:12 PM on May 3, 2014: member

    Primarily because of compatibility. We should be able to read wallets from the first version of bitcoin. Using different databases would create a larger burden here.

    Also, at least in my experience, LevelDB databases seem to be less robust than BerkeleyDB ones and not as portable between platforms. The main advantage of LevelDB is that it's faster - which makes it very suitable for the UTXO/block chain indexes which can be rebuilt at any time anyway.

    That said, there is nothing holding people back from making a wallet backend that stores the keys in any other key/value database.

  3. laanwj closed this on May 3, 2014

  4. philsong commented at 3:30 PM on May 3, 2014: contributor

    Thanks very much!

  5. MarcoFalke locked this on Sep 8, 2021
Contributors

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 21:15 UTC

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