Closed notmandatory closed 2 years ago
EDIT: If possible I'd like to make the database features NOT mutually exclusive.
I haven't fully grasped on the down side of not having mutually exclusive features.. Is that a very big problem? Many things especially like DB might make more sense to be mutually exclusive I feel?
Not having mutually exclusive features is recommended in the Cargo book but is probably more of an issue for libs than end bins like this project. But even here I think it would be useful to be able to enable all features and use them all without having to rebuild to enable/disable the ones I want to test with.
Currently
bdk-cli
can only use thebdk/key-value-db
feature for wallet data storage. I propose we make thebdk/default
memory database the default forbdk-cli
, and add two new optional and mutually exclusive features that enable use of thebdk/key-value-db
orsqlite
DBs which override using the memory DB. These features could be namedkey-value-db
andsqlite
.The purpose of this requested change is to make it possible to test
bdk
using thebdk-cli
tool with any of the three possible wallet data storage options.