Skip to content

Commit 4c7b47e

Browse files
Resolve comment, add check for fUseInstantSend and set value equal to the max value
Signed-off-by: Pasta <Pasta@dash.org>
1 parent 5152e75 commit 4c7b47e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,6 +2698,10 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, const int nConfMin
26982698
std::vector<CInputCoin> vValue;
26992699
CAmount nTotalLower = 0;
27002700

2701+
if (fUseInstantSend) {
2702+
coinLowestLarger->txout.nValue = sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN;
2703+
}
2704+
27012705
random_shuffle(vCoins.begin(), vCoins.end(), GetRandInt);
27022706

27032707
int tryDenomStart = 0;

0 commit comments

Comments
 (0)