diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 27321c076c..527159b388 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2698,8 +2698,9 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, const int nConfMin std::vector 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);