diff --git a/src/privatesend-client.cpp b/src/privatesend-client.cpp index 593049ea4..32c232b43 100644 --- a/src/privatesend-client.cpp +++ b/src/privatesend-client.cpp @@ -1335,8 +1335,8 @@ bool CPrivateSendClientSession::MakeCollateralAmounts(CConnman& connman) if (!pwalletMain) return false; std::vector vecTally; - if(!pwalletMain->SelectCoinsGrouppedByAddresses(vecTally, false, false)) { - LogPrint("privatesend", "CPrivateSendClientSession::MakeCollateralAmounts -- SelectCoinsGrouppedByAddresses can't find any inputs!\n"); + if(!pwalletMain->SelectCoinsGroupedByAddresses(vecTally, false, false)) { + LogPrint("privatesend", "CPrivateSendClientSession::MakeCollateralAmounts -- SelectCoinsGroupedByAddresses can't find any inputs!\n"); return false; } @@ -1439,8 +1439,8 @@ bool CPrivateSendClientSession::CreateDenominated(CConnman& connman) LOCK2(cs_main, pwalletMain->cs_wallet); std::vector vecTally; - if(!pwalletMain->SelectCoinsGrouppedByAddresses(vecTally)) { - LogPrint("privatesend", "CPrivateSendClientSession::CreateDenominated -- SelectCoinsGrouppedByAddresses can't find any inputs!\n"); + if(!pwalletMain->SelectCoinsGroupedByAddresses(vecTally)) { + LogPrint("privatesend", "CPrivateSendClientSession::CreateDenominated -- SelectCoinsGroupedByAddresses can't find any inputs!\n"); return false; } diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4c7b658e9..1515637be 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2376,7 +2376,7 @@ CAmount CWallet::GetAnonymizableBalance(bool fSkipDenominated, bool fSkipUnconfi if(fLiteMode) return 0; std::vector vecTally; - if(!SelectCoinsGrouppedByAddresses(vecTally, fSkipDenominated, true, fSkipUnconfirmed)) return 0; + if(!SelectCoinsGroupedByAddresses(vecTally, fSkipDenominated, true, fSkipUnconfirmed)) return 0; CAmount nTotal = 0; @@ -3059,7 +3059,7 @@ struct CompareByAmount } }; -bool CWallet::SelectCoinsGrouppedByAddresses(std::vector& vecTallyRet, bool fSkipDenominated, bool fAnonymizable, bool fSkipUnconfirmed) const +bool CWallet::SelectCoinsGroupedByAddresses(std::vector& vecTallyRet, bool fSkipDenominated, bool fAnonymizable, bool fSkipUnconfirmed) const { LOCK2(cs_main, cs_wallet); @@ -3069,12 +3069,12 @@ bool CWallet::SelectCoinsGrouppedByAddresses(std::vector& vecT if(fAnonymizable && fSkipUnconfirmed) { if(fSkipDenominated && fAnonymizableTallyCachedNonDenom) { vecTallyRet = vecAnonymizableTallyCachedNonDenom; - LogPrint("selectcoins", "SelectCoinsGrouppedByAddresses - using cache for non-denom inputs %d\n", vecTallyRet.size()); + LogPrint("selectcoins", "SelectCoinsGroupedByAddresses - using cache for non-denom inputs %d\n", vecTallyRet.size()); return vecTallyRet.size() > 0; } if(!fSkipDenominated && fAnonymizableTallyCached) { vecTallyRet = vecAnonymizableTallyCached; - LogPrint("selectcoins", "SelectCoinsGrouppedByAddresses - using cache for all inputs %d\n", vecTallyRet.size()); + LogPrint("selectcoins", "SelectCoinsGroupedByAddresses - using cache for all inputs %d\n", vecTallyRet.size()); return vecTallyRet.size() > 0; } } @@ -3149,7 +3149,7 @@ bool CWallet::SelectCoinsGrouppedByAddresses(std::vector& vecT // debug if (LogAcceptCategory("selectcoins")) { - std::string strMessage = "SelectCoinsGrouppedByAddresses - vecTallyRet:\n"; + std::string strMessage = "SelectCoinsGroupedByAddresses - vecTallyRet:\n"; for (const auto& item : vecTallyRet) strMessage += strprintf(" %s %f\n", CBitcoinAddress(item.txdest).ToString().c_str(), float(item.nAmount)/COIN); LogPrint("selectcoins", "%s", strMessage); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index d05d529c2..b80df65c4 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -810,7 +810,7 @@ public: bool GetCollateralTxDSIn(CTxDSIn& txdsinRet, CAmount& nValueRet) const; bool SelectPrivateCoins(CAmount nValueMin, CAmount nValueMax, std::vector& vecTxInRet, CAmount& nValueRet, int nPrivateSendRoundsMin, int nPrivateSendRoundsMax) const; - bool SelectCoinsGrouppedByAddresses(std::vector& vecTallyRet, bool fSkipDenominated = true, bool fAnonymizable = true, bool fSkipUnconfirmed = true) const; + bool SelectCoinsGroupedByAddresses(std::vector& vecTallyRet, bool fSkipDenominated = true, bool fAnonymizable = true, bool fSkipUnconfirmed = true) const; /// Get 1000DASH output and keys which can be used for the Masternode bool GetMasternodeOutpointAndKeys(COutPoint& outpointRet, CPubKey& pubKeyRet, CKey& keyRet, const std::string& strTxHash = "", const std::string& strOutputIndex = "");