MCPcopy Create free account
hub / github.com/LUX-Core/lux / MintableCoins

Method MintableCoins

src/wallet.cpp:2289–2303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2287}
2288
2289bool CWallet::MintableCoins()
2290{
2291 if (GetBalance() <= stake->GetReservedBalance())
2292 return false;
2293
2294 vector<COutput> vCoins;
2295 AvailableCoins(vCoins, true);
2296
2297 for (const COutput& out : vCoins) {
2298 if (GetTime() > stake->GetStakeAge(out.tx->GetTxTime()))
2299 return true;
2300 }
2301
2302 return false;
2303}
2304
2305bool CWallet::SelectCoinsMinConf(const std::string &account, const CAmount& nTargetValue, int nConfMine, int nConfTheirs, vector<COutput> vCoins, set<pair<const CWalletTx*, unsigned int> >& setCoinsRet, CAmount& nValueRet) const
2306{

Callers 1

getstakingstatusFunction · 0.80

Calls 4

GetTimeFunction · 0.85
GetReservedBalanceMethod · 0.80
GetStakeAgeMethod · 0.80
GetTxTimeMethod · 0.80

Tested by

no test coverage detected