diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 18:11:30 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 18:11:30 -0300 |
| commit | 540ed06974ff6b05364d4922895288744f076f6b (patch) | |
| tree | 6d7ba6802278f148fd98ffc3a482a47991dc08a7 /src/walletcmd.h | |
| parent | 805c5757b801d80ea575c6a8b58e2855254f9046 (diff) | |
wallet: add storage sanity check
Diffstat (limited to 'src/walletcmd.h')
| -rw-r--r-- | src/walletcmd.h | 4 |
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. |
| 67 | int CmdWalletStorageAudit(const std::string& strJsonOut = ""); | 67 | int 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. | ||
| 71 | int 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. |
| 71 | int CmdEncryptWallet(const std::string& strPassphrase); | 75 | int CmdEncryptWallet(const std::string& strPassphrase); |