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 cf96822..c9aac7d 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -187,6 +187,8 @@ static void PrintUsage() | |||
| 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"); |
| 189 | printf(" an empty data directory, then exit)\n"); | 189 | printf(" an empty data directory, then exit)\n"); |
| 190 | printf(" /walletsqliteloadcheck=FILE\n"); | ||
| 191 | printf(" (parse a SQLite export like the wallet loader)\n"); | ||
| 190 | printf(" /rescan (walk the chain for coins this wallet owns\n"); | 192 | printf(" /rescan (walk the chain for coins this wallet owns\n"); |
| 191 | printf(" but never recorded, then exit)\n"); | 193 | printf(" but never recorded, then exit)\n"); |
| 192 | printf("\n"); | 194 | printf("\n"); |
| @@ -562,6 +564,15 @@ int main(int argc, char* argv[]) | |||
| 562 | return nRet; | 564 | return nRet; |
| 563 | } | 565 | } |
| 564 | 566 | ||
| 567 | string strWalletSQLiteLoadCheck = | ||
| 568 | argval2(argc, argv, "/walletsqliteloadcheck", "-walletsqliteloadcheck"); | ||
| 569 | if (!strWalletSQLiteLoadCheck.empty()) | ||
| 570 | { | ||
| 571 | int nRet = CmdWalletSQLiteLoadCheck(strWalletSQLiteLoadCheck); | ||
| 572 | DBFlush(true); | ||
| 573 | return nRet; | ||
| 574 | } | ||
| 575 | |||
| 565 | // Berkeley DB reports failure by throwing, and CDB's constructor lets it | 576 | // Berkeley DB reports failure by throwing, and CDB's constructor lets it |
| 566 | // through. Nothing on this path caught anything, so an unreadable | 577 | // through. Nothing on this path caught anything, so an unreadable |
| 567 | // blkindex.dat or wallet.dat -- one written by another platform's Berkeley | 578 | // blkindex.dat or wallet.dat -- one written by another platform's Berkeley |