diff options
Diffstat (limited to 'src/walletcmd.cpp')
| -rw-r--r-- | src/walletcmd.cpp | 16 |
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", |