mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user