upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 17:40:20 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 17:59:25 -0300
commit805c5757b801d80ea575c6a8b58e2855254f9046 (patch)
tree5faf35daa569d987b87dbb161bb18ec170f944b0 /src/main_gui.cpp
parent8e62e362e2fbe6fd6c5d66ddb354ec544f8cf0db (diff)
wallet: export storage audit json
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp10
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 }