mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
A couple of small fixes for mixing collaterals (#2294)
* No reasons to create mixing collaterals if we can't create denoms to mix * Include non-anonymizable inputs when trying to make mixing collaterals
This commit is contained in:
parent
d192d642f6
commit
c6a0c55417
@ -1327,7 +1327,7 @@ bool CPrivateSendClientSession::MakeCollateralAmounts(CConnman& connman)
|
||||
if (!pwalletMain) return false;
|
||||
|
||||
std::vector<CompactTallyItem> vecTally;
|
||||
if(!pwalletMain->SelectCoinsGrouppedByAddresses(vecTally, false)) {
|
||||
if(!pwalletMain->SelectCoinsGrouppedByAddresses(vecTally, false, false)) {
|
||||
LogPrint("privatesend", "CPrivateSendClientSession::MakeCollateralAmounts -- SelectCoinsGrouppedByAddresses can't find any inputs!\n");
|
||||
return false;
|
||||
}
|
||||
@ -1522,6 +1522,9 @@ bool CPrivateSendClientSession::CreateDenominated(const CompactTallyItem& tallyI
|
||||
} while (nOutputsTotal == 0 && !fSkip);
|
||||
LogPrintf("CPrivateSendClientSession::CreateDenominated -- 3 - nOutputsTotal: %d, nValueLeft: %f\n", nOutputsTotal, (float)nValueLeft/COIN);
|
||||
|
||||
// No reasons to create mixing collaterals if we can't create denoms to mix
|
||||
if (nOutputsTotal == 0) return false;
|
||||
|
||||
// if we have anything left over, it will be automatically send back as change - there is no need to send it manually
|
||||
|
||||
CCoinControl coinControl;
|
||||
|
Loading…
Reference in New Issue
Block a user