Skip to content

Commit 6f852a7

Browse files
committed
Update select coin methods
1 parent e706c4b commit 6f852a7

File tree

4 files changed

+117
-97
lines changed

4 files changed

+117
-97
lines changed

src/instantsend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ bool CTxLockRequest::IsValid() const
987987
int nInstantSendConfirmationsRequired = Params().GetConsensus().nInstantSendConfirmationsRequired;
988988

989989
for (const auto& txin : tx->vin) {
990+
990991
Coin coin;
991992

992993
if (!GetUTXOCoin(txin.prevout, coin)) {
@@ -1007,7 +1008,7 @@ bool CTxLockRequest::IsValid() const
10071008
nValueIn += coin.out.nValue;
10081009
}
10091010

1010-
if (nValueIn > sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE) * COIN) {
1011+
if (nValueIn > sporkManager.GetSporkValue(SPORK_5_INSTANTSEND_MAX_VALUE)*COIN) {
10111012
LogPrint("instantsend", "CTxLockRequest::IsValid -- Transaction value too high: nValueIn=%d, tx=%s", nValueIn, ToString());
10121013
return false;
10131014
}

src/privatesend-client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ bool CPrivateSendClientSession::StartNewQueue(CAmount nValueMin, CAmount nBalanc
10991099
// ** find the coins we'll use
11001100
std::vector<CTxIn> vecTxIn;
11011101
CAmount nValueInTmp = 0;
1102-
if (!pwalletMain->SelectCoinsMix(nValueMin, nBalanceNeedsAnonymized, vecTxIn, nValueInTmp, 0, privateSendClient.nPrivateSendRounds)) {
1102+
if (!pwalletMain->SelectPrivateCoins(nValueMin, nBalanceNeedsAnonymized, vecTxIn, nValueInTmp, 0, privateSendClient.nPrivateSendRounds)) {
11031103
// this should never happen
11041104
LogPrintf("CPrivateSendClientSession::StartNewQueue -- Can't mix: no compatible inputs found!\n");
11051105
strAutoDenomResult = _("Can't mix: no compatible inputs found!");

0 commit comments

Comments
 (0)