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:
authorBitflash <admin@bitflash.network>2026-08-14 08:56:57 -0300
committerBitflash <admin@bitflash.network>2026-08-14 08:56:57 -0300
commitcf597ca37aec53b0dd7016399fee73e1959dc604 (patch)
tree8487caa5b4471b1203b46e0f73fce0362bf2c950 /src/walletcmd.h
parent5306542f6121e0c0b4ed1210e24d55fa4fbb7127 (diff)
parent33af98c042340f6431aa93b4b6f893d85f40f237 (diff)
Merge pull request 'wallet: fail closed on unsafe wallet storage state' (#39) from wallet-storage-sanity-checks into main
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);