adjust spork5 code in wallet.cpp

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-06-17 20:01:47 -05:00
parent 4c7b47e282
commit 74830ee2a8
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -2698,8 +2698,9 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, const int nConfMin
std::vector<CInputCoin> vValue;
CAmount nTotalLower = 0;
if (fUseInstantSend) {
coinLowestLarger->txout.nValue = sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN;
// TODO: drop SPORK_5_INSTANTSEND_MAX_VALUE spork
if (fUseInstantSend && nTargetValue > sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN) {
return false;
}
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);