Update
This commit is contained in:
parent
0e5be2be6d
commit
876fcec717
@ -2862,13 +2862,14 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT
|
|||||||
strFailReason = _("Insufficient funds");
|
strFailReason = _("Insufficient funds");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Send Change Back to Same (sending) Address
|
||||||
|
if(!coinControlDestChange && gArgs.GetBoolArg("-SendChangeToBack", false)){
|
||||||
|
scriptChange = GetScriptForDestination(destChange);
|
||||||
|
change_prototype_txout = CTxOut(0, scriptChange);
|
||||||
|
change_prototype_size = GetSerializeSize(change_prototype_txout, SER_DISK, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Send Change Back to Same (sending) Address
|
|
||||||
if(!coinControlDestChange && gArgs.GetBoolArg("-SendChangeToBack", false)){
|
|
||||||
scriptChange = GetScriptForDestination(destChange);
|
|
||||||
CTxOut change_prototype_txout(0, scriptChange);
|
|
||||||
size_t change_prototype_size = GetSerializeSize(change_prototype_txout, SER_DISK, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
const CAmount nChange = nValueIn - nValueToSelect;
|
const CAmount nChange = nValueIn - nValueToSelect;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user