ruimarinho / docker-bitcoin-core

A bitcoin-core docker image
https://hub.docker.com/r/ruimarinho/bitcoin-core/
MIT License
365 stars 209 forks source link

Question: Why BerkeleyDB over LevelDB? #53

Closed aekasitt closed 6 years ago

aekasitt commented 6 years ago

Since the 2013 change in Bitcoin-Core, the node has been changed to run on LevelDB over BerkeleyDB. Is there a particular reason, development-related or not, that this repo uses BerkeleyDB in its Alpine image?

Is it due to Alpine image limitation?

ruimarinho commented 6 years ago

@aekazitt BerkeleyDB has and will continue to be the database used for the wallet. Since 2013, Bitcoin Core has changed UTXOs/indexes database format to use LevelDB instead, as it offered superior performance. I remember reading about concerns over database corruption, but I don't know if that still holds true.