diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 17:36:09 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 17:59:25 -0300 |
| commit | 8e62e362e2fbe6fd6c5d66ddb354ec544f8cf0db (patch) | |
| tree | d9773fd4b52f3ae7c316c6ff11fc2ab4d924a122 /src/main_gui.cpp | |
| parent | c0f886f0683ebd1321751355ddc0c757496320c9 (diff) | |
wallet: add storage audit command
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 50c4f34..532bc3b 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -172,6 +172,8 @@ static void PrintUsage() | |||
| 172 | printf(" /recoveryaudit (show how much spendable balance is\n"); | 172 | printf(" /recoveryaudit (show how much spendable balance is\n"); |
| 173 | printf(" covered by the recovery phrase;\n"); | 173 | printf(" covered by the recovery phrase;\n"); |
| 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"); | ||
| 176 | printf(" printing wallet values, then exit)\n"); | ||
| 175 | printf(" /rescan (walk the chain for coins this wallet owns\n"); | 177 | printf(" /rescan (walk the chain for coins this wallet owns\n"); |
| 176 | printf(" but never recorded, then exit)\n"); | 178 | printf(" but never recorded, then exit)\n"); |
| 177 | printf("\n"); | 179 | printf("\n"); |
| @@ -704,6 +706,13 @@ int main(int argc, char* argv[]) | |||
| 704 | return nRet; | 706 | return nRet; |
| 705 | } | 707 | } |
| 706 | 708 | ||
| 709 | if (arg(argc,argv,"/walletstorageaudit") || arg(argc,argv,"-walletstorageaudit")) | ||
| 710 | { | ||
| 711 | int nRet = CmdWalletStorageAudit(); | ||
| 712 | DBFlush(true); | ||
| 713 | return nRet; | ||
| 714 | } | ||
| 715 | |||
| 707 | if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase")) | 716 | if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase")) |
| 708 | { | 717 | { |
| 709 | int nRet = CmdNewPhrase(); | 718 | int nRet = CmdNewPhrase(); |