why cannot only use one for them?
why need both level db for index of blockchain and Berkeley db for wallet? #4123
issue philsong opened this issue on May 3, 2014-
philsong commented at 2:56 PM on May 3, 2014: contributor
-
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.
- laanwj closed this on May 3, 2014
-
philsong commented at 3:30 PM on May 3, 2014: contributor
Thanks very much!
- MarcoFalke locked this on Sep 8, 2021