diff options
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 532bc3b..395cc0f 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -174,6 +174,8 @@ static void PrintUsage() | |||
| 174 | printf(" exits 2 when wallet.dat is still needed)\n"); | 174 | printf(" exits 2 when wallet.dat is still needed)\n"); |
| 175 | printf(" /walletstorageaudit (count wallet.dat record types without\n"); | 175 | printf(" /walletstorageaudit (count wallet.dat record types without\n"); |
| 176 | printf(" printing wallet values, then exit)\n"); | 176 | printf(" printing wallet values, then exit)\n"); |
| 177 | printf(" /walletstorageauditjson=FILE\n"); | ||
| 178 | printf(" (write the same audit as deterministic JSON)\n"); | ||
| 177 | printf(" /rescan (walk the chain for coins this wallet owns\n"); | 179 | printf(" /rescan (walk the chain for coins this wallet owns\n"); |
| 178 | printf(" but never recorded, then exit)\n"); | 180 | printf(" but never recorded, then exit)\n"); |
| 179 | printf("\n"); | 181 | printf("\n"); |
| @@ -706,9 +708,13 @@ int main(int argc, char* argv[]) | |||
| 706 | return nRet; | 708 | return nRet; |
| 707 | } | 709 | } |
| 708 | 710 | ||
| 709 | if (arg(argc,argv,"/walletstorageaudit") || arg(argc,argv,"-walletstorageaudit")) | 711 | string strWalletStorageAuditJson = |
| 712 | argval2(argc, argv, "/walletstorageauditjson", "-walletstorageauditjson"); | ||
| 713 | if (arg(argc,argv,"/walletstorageaudit") || | ||
| 714 | arg(argc,argv,"-walletstorageaudit") || | ||
| 715 | !strWalletStorageAuditJson.empty()) | ||
| 710 | { | 716 | { |
| 711 | int nRet = CmdWalletStorageAudit(); | 717 | int nRet = CmdWalletStorageAudit(strWalletStorageAuditJson); |
| 712 | DBFlush(true); | 718 | DBFlush(true); |
| 713 | return nRet; | 719 | return nRet; |
| 714 | } | 720 | } |