mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
adjust spork5 code in wallet.cpp
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
4c7b47e282
commit
74830ee2a8
@ -2698,8 +2698,9 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, const int nConfMin
|
|||||||
std::vector<CInputCoin> vValue;
|
std::vector<CInputCoin> vValue;
|
||||||
CAmount nTotalLower = 0;
|
CAmount nTotalLower = 0;
|
||||||
|
|
||||||
if (fUseInstantSend) {
|
// TODO: drop SPORK_5_INSTANTSEND_MAX_VALUE spork
|
||||||
coinLowestLarger->txout.nValue = sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN;
|
if (fUseInstantSend && nTargetValue > sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);
|
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);
|
||||||
|
Loading…
Reference in New Issue
Block a user