diff options
| author | bitflash <dev@bitflash.network> | 2026-08-19 11:20:55 -0300 |
|---|---|---|
| committer | bitflash <dev@bitflash.network> | 2026-08-19 11:20:55 -0300 |
| commit | 4c24a86a8aa01b02874e5bdb7856beed6e4cf6b6 (patch) | |
| tree | ba90a774e80d12041369aaca2a4671de593cb30d /src | |
| parent | 5f453dd2964f070b6c296d1aec0ac5d4405bef8d (diff) | |
wallet/docs: SQLite is the default backend, not experimental
Drop the "experimental" label from the wallet code and docs now that
SQLite is the default backend for new wallets, is coin-proven, and carries
encrypt, backup, atomic seed writes, and the storage diagnostics.
- main_gui.cpp: -help text, the unknown-backend error (SQLite is no longer
"experimental" and Berkeley DB is no longer "the default"), and the
startup banner ("Wallet backend: SQLite").
- walletcmd.h: the export command comment.
- docs/storage.md: rewrite the SQLite section from staging-only ("runtime
still opens Berkeley DB", "no runtime backend flag exists yet") to the
shipped state -- default backend, conversion wizard, per-backend ops --
and reframe the migration order as shipped in v1.2.20.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main_gui.cpp | 16 | ||||
| -rw-r--r-- | src/walletcmd.h | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 55ca8c6..943799f 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -182,7 +182,7 @@ static void PrintUsage() | |||
| 182 | printf(" /walletstoragecheck (fail closed on inconsistent or unsafe\n"); | 182 | printf(" /walletstoragecheck (fail closed on inconsistent or unsafe\n"); |
| 183 | printf(" wallet.dat storage state)\n"); | 183 | printf(" wallet.dat storage state)\n"); |
| 184 | printf(" /walletsqliteexport=FILE (copy raw wallet.dat records into an\n"); | 184 | printf(" /walletsqliteexport=FILE (copy raw wallet.dat records into an\n"); |
| 185 | printf(" experimental SQLite store, then exit)\n"); | 185 | printf(" SQLite store, then exit)\n"); |
| 186 | printf(" /walletsqliteverify=FILE (compare wallet.dat with a SQLite export,\n"); | 186 | printf(" /walletsqliteverify=FILE (compare wallet.dat with a SQLite export,\n"); |
| 187 | printf(" printing counts only, then exit)\n"); | 187 | printf(" printing counts only, then exit)\n"); |
| 188 | printf(" /walletsqliterestore=FILE (rebuild wallet.dat from a SQLite export in\n"); | 188 | printf(" /walletsqliterestore=FILE (rebuild wallet.dat from a SQLite export in\n"); |
| @@ -680,17 +680,17 @@ int main(int argc, char* argv[]) | |||
| 680 | AttachTerminal(); | 680 | AttachTerminal(); |
| 681 | FatalStartupError(fHeadlessStartup, | 681 | FatalStartupError(fHeadlessStartup, |
| 682 | strprintf("Unknown wallet backend '%s'.", strWalletBackend.c_str()), | 682 | strprintf("Unknown wallet backend '%s'.", strWalletBackend.c_str()), |
| 683 | "Use -walletbackend=sqlite for the experimental SQLite backend, " | 683 | "Use -walletbackend=sqlite for the SQLite backend, or " |
| 684 | "or omit -walletbackend (or -walletbackend=bdb) to use the " | 684 | "-walletbackend=bdb for the Berkeley DB wallet.dat."); |
| 685 | "default Berkeley DB wallet.dat."); | ||
| 686 | return 1; | 685 | return 1; |
| 687 | } | 686 | } |
| 688 | 687 | ||
| 689 | if (strWalletBackend == "sqlite") | 688 | if (strWalletBackend == "sqlite") |
| 690 | { | 689 | { |
| 691 | // Opt-in, experimental. The node runs on <datadir>/wallet.sqlite and | 690 | // Explicit opt-in via the flag. The node runs on |
| 692 | // never opens wallet.dat, but the user has to have exported one | 691 | // <datadir>/wallet.sqlite and never opens wallet.dat, but the user |
| 693 | // first -- there is no silent migration, and wallet.dat is left | 692 | // has to have exported one first -- there is no silent migration, |
| 693 | // and wallet.dat is left | ||
| 694 | // exactly where it is so a plain restart goes back to it. | 694 | // exactly where it is so a plain restart goes back to it. |
| 695 | AttachTerminal(); | 695 | AttachTerminal(); |
| 696 | string strSQLitePath = GetAppDir() + "/wallet.sqlite"; | 696 | string strSQLitePath = GetAppDir() + "/wallet.sqlite"; |
| @@ -724,7 +724,7 @@ int main(int argc, char* argv[]) | |||
| 724 | } | 724 | } |
| 725 | 725 | ||
| 726 | fprintf(stderr, | 726 | fprintf(stderr, |
| 727 | "Wallet backend: SQLite (experimental)\n" | 727 | "Wallet backend: SQLite\n" |
| 728 | " %s\n" | 728 | " %s\n" |
| 729 | "Your Berkeley DB wallet.dat is left untouched. Restart without\n" | 729 | "Your Berkeley DB wallet.dat is left untouched. Restart without\n" |
| 730 | "-walletbackend=sqlite to go back to it.\n", | 730 | "-walletbackend=sqlite to go back to it.\n", |
diff --git a/src/walletcmd.h b/src/walletcmd.h index 38cbfdb..7013d44 100644 --- a/src/walletcmd.h +++ b/src/walletcmd.h | |||
| @@ -70,9 +70,9 @@ int CmdWalletStorageAudit(const std::string& strJsonOut = ""); | |||
| 70 | // or migration-unsafe mix of storage records. | 70 | // or migration-unsafe mix of storage records. |
| 71 | int CmdWalletStorageCheck(); | 71 | int CmdWalletStorageCheck(); |
| 72 | 72 | ||
| 73 | // Diagnostic/migration staging: copy every raw wallet.dat record into an | 73 | // Copy every raw wallet.dat record into a SQLite key/value store, preserving |
| 74 | // experimental SQLite key/value store, preserving serialized bytes. This does | 74 | // serialized bytes. A migration/scripting tool; it does not change which backend |
| 75 | // not change which backend the runtime wallet opens. | 75 | // the runtime wallet opens. |
| 76 | int CmdWalletSQLiteExport(const std::string& strDest); | 76 | int CmdWalletSQLiteExport(const std::string& strDest); |
| 77 | 77 | ||
| 78 | // Export the currently-loaded wallet to a SQLite file (shared by the command | 78 | // Export the currently-loaded wallet to a SQLite file (shared by the command |