upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/walletcmd.cpp
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 17:15:24 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 17:59:24 -0300
commitf57d58155cdf65ec2ddb1a01c9d9466bf60df9ab (patch)
tree11f890fd6bbb030f4f2e1a80c8130794f5b61088 /src/walletcmd.cpp
parent9e39a50d1f110020b0841d31e4b931aa877cc448 (diff)
wallet: report locked encrypted recovery seed
Diffstat (limited to 'src/walletcmd.cpp')
-rw-r--r--src/walletcmd.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/walletcmd.cpp b/src/walletcmd.cpp
index e8ac4bf..eccb9b3 100644
--- a/src/walletcmd.cpp
+++ b/src/walletcmd.cpp
@@ -400,7 +400,12 @@ int CmdRecoveryAudit()
400 int64 nImmatureTotal = audit.nRecoverableImmatureCredit + audit.nLegacyImmatureCredit; 400 int64 nImmatureTotal = audit.nRecoverableImmatureCredit + audit.nLegacyImmatureCredit;
401 401
402 printf("Wallet recovery audit\n"); 402 printf("Wallet recovery audit\n");
403 printf(" recovery phrase: %s\n", audit.fHaveSeed ? "present" : "not installed"); 403 if (audit.fHaveSeed)
404 printf(" recovery phrase: present\n");
405 else if (audit.fSeedEncryptedLocked)
406 printf(" recovery phrase: encrypted, unlock wallet to audit\n");
407 else
408 printf(" recovery phrase: not installed\n");
404 if (audit.fHaveSeed) 409 if (audit.fHaveSeed)
405 { 410 {
406 printf(" derivation schema: %s\n", HDKeySchemaName(audit.nSchema).c_str()); 411 printf(" derivation schema: %s\n", HDKeySchemaName(audit.nSchema).c_str());
@@ -412,6 +417,15 @@ int CmdRecoveryAudit()
412 if (!audit.fDeriveComplete) 417 if (!audit.fDeriveComplete)
413 printf(" derivation warning: %s\n", audit.strDeriveError.c_str()); 418 printf(" derivation warning: %s\n", audit.strDeriveError.c_str());
414 printf(" total spendable balance: %s BTF\n", FormatMoney(nTotal).c_str()); 419 printf(" total spendable balance: %s BTF\n", FormatMoney(nTotal).c_str());
420 if (audit.fSeedEncryptedLocked)
421 {
422 printf(" recovery coverage: unavailable while wallet is locked\n");
423 printf(" immature mining rewards: %s BTF\n", FormatMoney(nImmatureTotal).c_str());
424 printf("\n");
425 printf("Unlock the wallet with /walletpassphrase or /walletpassphrase=@FILE to audit phrase coverage.\n");
426 fflush(stdout);
427 return 2;
428 }
415 printf(" covered by recovery phrase: %s BTF (%d transaction(s))\n", 429 printf(" covered by recovery phrase: %s BTF (%d transaction(s))\n",
416 FormatMoney(audit.nRecoverableCredit).c_str(), audit.nRecoverableTx); 430 FormatMoney(audit.nRecoverableCredit).c_str(), audit.nRecoverableTx);
417 printf(" wallet.dat-only balance: %s BTF (%d transaction(s))\n", 431 printf(" wallet.dat-only balance: %s BTF (%d transaction(s))\n",