mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 16:53:52 +02:00
Use bilingual_str for address fetching functions
For GetNewDestination, GetNewChangeDestination, and GetReservedDestination, use bilingual_str for errors
This commit is contained in:
@@ -618,9 +618,9 @@ bool CWallet::CreateTransactionInternal(
|
||||
// Reserve a new key pair from key pool. If it fails, provide a dummy
|
||||
// destination in case we don't need change.
|
||||
CTxDestination dest;
|
||||
std::string dest_err;
|
||||
bilingual_str dest_err;
|
||||
if (!reservedest.GetReservedDestination(dest, true, dest_err)) {
|
||||
error = strprintf(_("Transaction needs a change address, but we can't generate it. %s"), dest_err);
|
||||
error = _("Transaction needs a change address, but we can't generate it.") + Untranslated(" ") + dest_err;
|
||||
}
|
||||
scriptChange = GetScriptForDestination(dest);
|
||||
// A valid destination implies a change script (and
|
||||
|
||||
Reference in New Issue
Block a user