diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-14 08:56:57 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-14 08:56:57 -0300 |
| commit | cf597ca37aec53b0dd7016399fee73e1959dc604 (patch) | |
| tree | 8487caa5b4471b1203b46e0f73fce0362bf2c950 /src/walletcmd.h | |
| parent | 5306542f6121e0c0b4ed1210e24d55fa4fbb7127 (diff) | |
| parent | 33af98c042340f6431aa93b4b6f893d85f40f237 (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.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); |