diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9fc76ac6c6b19..d4b83be99b04e 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2439,7 +2439,7 @@ static void ApproximateBestSubset(vector sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE)) { + if (fUseInstantSend && nTotal + vValue[i].first > sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE)*COIN) { continue; } //The solver here uses a randomized algorithm, @@ -2504,7 +2504,7 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int // List of values less than target pair > coinLowestLarger; coinLowestLarger.first = fUseInstantSend - ? sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) + ? sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE)*COIN : std::numeric_limits::max(); coinLowestLarger.second.first = NULL; vector > > vValue;