|
|
@ -2387,6 +2387,10 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int |
|
|
|
bool CWallet::SelectCoins(const CAmount& nTargetValue, set<pair<const CWalletTx*,unsigned int> >& setCoinsRet, CAmount& nValueRet, bool& fOnlyCoinbaseCoinsRet, bool& fNeedCoinbaseCoinsRet, const CCoinControl* coinControl,uint64_t *interestp) const |
|
|
|
{ |
|
|
|
// Output parameter fOnlyCoinbaseCoinsRet is set to true when the only available coins are coinbase utxos.
|
|
|
|
uint64_t tmp; |
|
|
|
if ( interestp == 0 ) |
|
|
|
interestp = &tmp; |
|
|
|
*interestp = 0; |
|
|
|
vector<COutput> vCoinsNoCoinbase, vCoinsWithCoinbase; |
|
|
|
AvailableCoins(vCoinsNoCoinbase, true, coinControl, false, false); |
|
|
|
AvailableCoins(vCoinsWithCoinbase, true, coinControl, false, true); |
|
|
|