wallet::CWallet::MigrateToSQLite

Move all records from the BDB database to a new SQLite database for storage. The original BDB file will be deleted and replaced with a new SQLite file. A backup is not created. May crash if something unexpected happens in the filesystem.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f94fde07298), requires_capability(0x7f95061a9fd8), requires_capability(0x7f94f2b7aae8), requires_capability(0x7f94f0cf9778), requires_capability(0x7f94fee3c168)]]
bool
MigrateToSQLite(bilingual_str& error);

Return Value

true if the database was migrated to SQLite.

Parameters

NameDescription
errorSet to an error message on failure.