]> Untitled Git - bdk-cli/commit
`open_database` avoids creating a wallet dir if...
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 30 Aug 2022 15:22:12 +0000 (17:22 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 20 Sep 2022 15:40:05 +0000 (17:40 +0200)
commitbff2d375a1dc811b96e0ce47b21ab8ebb17f1d23
treea6f79438407bba83c29bcf69b3167365dfefbee6
parent352d6c898cd9d786527900e8f072bd05c530f7b6
`open_database` avoids creating a wallet dir if...
...not necessary

This is useful for the wasm integration, where we want to call the
`open_database` function directly, without wanting it to create any
directories.
Note that when using bdk-cli normally, it won't create a db directory
if it's useless, but it will still create a base directory (even if
empty). This is suboptimal, but fixing it would require a quite big
refactor to the code.
src/utils.rs