0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-09 10:43:19 -05:00

[wallet] translate "Keypool ran out" message

This commit is contained in:
Sjors Provoost 2019-10-12 12:27:56 +02:00
parent 02fafdd12c
commit 5efc25f963
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ bool LegacyScriptPubKeyMan::GetNewDestination(const OutputType type, CTxDestinat
// Generate a new key that is added to wallet // Generate a new key that is added to wallet
CPubKey new_key; CPubKey new_key;
if (!GetKeyFromPool(new_key, type)) { if (!GetKeyFromPool(new_key, type)) {
error = "Error: Keypool ran out, please call keypoolrefill first"; error = _("Error: Keypool ran out, please call keypoolrefill first").translated;
return false; return false;
} }
LearnRelatedScripts(new_key, type); LearnRelatedScripts(new_key, type);

View file

@ -2638,7 +2638,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
bool ret = reservedest.GetReservedDestination(dest, true); bool ret = reservedest.GetReservedDestination(dest, true);
if (!ret) if (!ret)
{ {
strFailReason = "Keypool ran out, please call keypoolrefill first"; strFailReason = _("Keypool ran out, please call keypoolrefill first").translated;
return false; return false;
} }
@ -3161,7 +3161,7 @@ bool CWallet::GetNewChangeDestination(const OutputType type, CTxDestination& des
ReserveDestination reservedest(this, type); ReserveDestination reservedest(this, type);
if (!reservedest.GetReservedDestination(dest, true)) { if (!reservedest.GetReservedDestination(dest, true)) {
error = "Error: Keypool ran out, please call keypoolrefill first"; error = _("Error: Keypool ran out, please call keypoolrefill first").translated;
return false; return false;
} }