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:
authorBitflash <admin@bitflash.network>2026-08-14 08:56:40 -0300
committerBitflash <admin@bitflash.network>2026-08-14 08:56:40 -0300
commit5306542f6121e0c0b4ed1210e24d55fa4fbb7127 (patch)
tree5faf35daa569d987b87dbb161bb18ec170f944b0 /src/main_gui.cpp
parent9e39a50d1f110020b0841d31e4b931aa877cc448 (diff)
parent805c5757b801d80ea575c6a8b58e2855254f9046 (diff)
Merge pull request 'wallet: audit Berkeley DB wallet storage' (#38) from wallet-storage-audit-bdb into main
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 3f52e91..395cc0f 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -114,7 +114,8 @@ static void PrintUsage()
114 printf(" /gen\n"); 114 printf(" /gen\n");
115 printf(" /nogui or /daemon\n"); 115 printf(" /nogui or /daemon\n");
116 printf(" /selftest=wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt,\n"); 116 printf(" /selftest=wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt,\n");
117 printf(" net-message, consensus-limits, pool-stratum, parse-money, socks5-proxy, or managed-tor\n"); 117 printf(" wallet-portability, net-message, consensus-limits, pool-stratum,\n");
118 printf(" parse-money, socks5-proxy, or managed-tor\n");
118 printf("\n"); 119 printf("\n");
119 printf("Mining mode:\n"); 120 printf("Mining mode:\n");
120 printf(" /operator\n"); 121 printf(" /operator\n");
@@ -171,6 +172,10 @@ static void PrintUsage()
171 printf(" /recoveryaudit (show how much spendable balance is\n"); 172 printf(" /recoveryaudit (show how much spendable balance is\n");
172 printf(" covered by the recovery phrase;\n"); 173 printf(" covered by the recovery phrase;\n");
173 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");
177 printf(" /walletstorageauditjson=FILE\n");
178 printf(" (write the same audit as deterministic JSON)\n");
174 printf(" /rescan (walk the chain for coins this wallet owns\n"); 179 printf(" /rescan (walk the chain for coins this wallet owns\n");
175 printf(" but never recorded, then exit)\n"); 180 printf(" but never recorded, then exit)\n");
176 printf("\n"); 181 printf("\n");
@@ -703,6 +708,17 @@ int main(int argc, char* argv[])
703 return nRet; 708 return nRet;
704 } 709 }
705 710
711 string strWalletStorageAuditJson =
712 argval2(argc, argv, "/walletstorageauditjson", "-walletstorageauditjson");
713 if (arg(argc,argv,"/walletstorageaudit") ||
714 arg(argc,argv,"-walletstorageaudit") ||
715 !strWalletStorageAuditJson.empty())
716 {
717 int nRet = CmdWalletStorageAudit(strWalletStorageAuditJson);
718 DBFlush(true);
719 return nRet;
720 }
721
706 if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase")) 722 if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase"))
707 { 723 {
708 int nRet = CmdNewPhrase(); 724 int nRet = CmdNewPhrase();