diff options
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 6e89270..caacf13 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -183,6 +183,8 @@ static void PrintUsage() | |||
| 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(" experimental SQLite store, then exit)\n"); |
| 186 | printf(" /walletsqliteverify=FILE (compare wallet.dat with a SQLite export,\n"); | ||
| 187 | printf(" printing counts only, then exit)\n"); | ||
| 186 | printf(" /rescan (walk the chain for coins this wallet owns\n"); | 188 | printf(" /rescan (walk the chain for coins this wallet owns\n"); |
| 187 | printf(" but never recorded, then exit)\n"); | 189 | printf(" but never recorded, then exit)\n"); |
| 188 | printf("\n"); | 190 | printf("\n"); |
| @@ -540,6 +542,15 @@ int main(int argc, char* argv[]) | |||
| 540 | return nRet; | 542 | return nRet; |
| 541 | } | 543 | } |
| 542 | 544 | ||
| 545 | string strWalletSQLiteVerify = | ||
| 546 | argval2(argc, argv, "/walletsqliteverify", "-walletsqliteverify"); | ||
| 547 | if (!strWalletSQLiteVerify.empty()) | ||
| 548 | { | ||
| 549 | int nRet = CmdWalletSQLiteVerify(strWalletSQLiteVerify); | ||
| 550 | DBFlush(true); | ||
| 551 | return nRet; | ||
| 552 | } | ||
| 553 | |||
| 543 | // Berkeley DB reports failure by throwing, and CDB's constructor lets it | 554 | // Berkeley DB reports failure by throwing, and CDB's constructor lets it |
| 544 | // through. Nothing on this path caught anything, so an unreadable | 555 | // through. Nothing on this path caught anything, so an unreadable |
| 545 | // blkindex.dat or wallet.dat -- one written by another platform's Berkeley | 556 | // blkindex.dat or wallet.dat -- one written by another platform's Berkeley |