upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/walletcmd.h
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 18:11:30 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 18:11:30 -0300
commit540ed06974ff6b05364d4922895288744f076f6b (patch)
tree6d7ba6802278f148fd98ffc3a482a47991dc08a7 /src/walletcmd.h
parent805c5757b801d80ea575c6a8b58e2855254f9046 (diff)
wallet: add storage sanity check
Diffstat (limited to 'src/walletcmd.h')
-rw-r--r--src/walletcmd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/walletcmd.h b/src/walletcmd.h
index c6342a6..6077669 100644
--- a/src/walletcmd.h
+++ b/src/walletcmd.h
@@ -66,6 +66,10 @@ int CmdRecoveryAudit();
66// addresses, transaction ids, labels, or other wallet values. 66// addresses, transaction ids, labels, or other wallet values.
67int CmdWalletStorageAudit(const std::string& strJsonOut = ""); 67int CmdWalletStorageAudit(const std::string& strJsonOut = "");
68 68
69// Diagnostic: fail closed when wallet.dat contains an internally inconsistent
70// or migration-unsafe mix of storage records.
71int CmdWalletStorageCheck();
72
69// Rewrite wallet.dat so private keys and the HD seed are encrypted with the 73// Rewrite wallet.dat so private keys and the HD seed are encrypted with the
70// given passphrase. Returns 0 on success and exits without starting the node. 74// given passphrase. Returns 0 on success and exits without starting the node.
71int CmdEncryptWallet(const std::string& strPassphrase); 75int CmdEncryptWallet(const std::string& strPassphrase);