Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/spend.cpp
Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | for (std::vector<COutput>::iterator it = vCoins.begin(); | ||||
++it; | ++it; | ||||
} | } | ||||
} | } | ||||
// Note: after wellington the ancestor stats will always be 0, since this | // Note: after wellington the ancestor stats will always be 0, since this | ||||
// limitation becomes irrelevant. | // limitation becomes irrelevant. | ||||
size_t max_ancestors{0}; | size_t max_ancestors{0}; | ||||
size_t max_descendants{0}; | size_t max_descendants{0}; | ||||
wallet.chain().getPackageLimits(max_ancestors, max_descendants); | |||||
// form groups from remaining coins; note that preset coins will not | // form groups from remaining coins; note that preset coins will not | ||||
// automatically have their associated (same address) coins included | // automatically have their associated (same address) coins included | ||||
if (coin_control.m_avoid_partial_spends && | if (coin_control.m_avoid_partial_spends && | ||||
vCoins.size() > OUTPUT_GROUP_MAX_ENTRIES) { | vCoins.size() > OUTPUT_GROUP_MAX_ENTRIES) { | ||||
// Cases where we have 11+ outputs all pointing to the same destination | // Cases where we have 11+ outputs all pointing to the same destination | ||||
// may result in privacy leaks as they will potentially be | // may result in privacy leaks as they will potentially be | ||||
// deterministically sorted. We solve that by explicitly shuffling the | // deterministically sorted. We solve that by explicitly shuffling the | ||||
▲ Show 20 Lines • Show All 527 Lines • Show Last 20 Lines |