for(std::map<uint256, CWalletTx>::iterator it = wallet->mapWallet.begin(); it != wallet->mapWallet.end(); ++it)
{
std::vector<KernelRecord> txList = KernelRecord::decomposeOutput(wallet, it->second);
- BOOST_FOREACH(KernelRecord& kr, txList) {
+ for (KernelRecord& kr : txList) {
if(!kr.spent) {
cachedWallet.append(kr);
}
if(!toInsert.empty()) /* only if something to insert */
{
int insert_idx = lowerIndex;
- BOOST_FOREACH(const KernelRecord &rec, toInsert)
+ for (const KernelRecord &rec : toInsert)
{
if(!rec.spent)
{
{
// Updated -- remove spent coins from table
std::vector<KernelRecord> toCheck = KernelRecord::decomposeOutput(wallet, mi->second);
- BOOST_FOREACH(const KernelRecord &rec, toCheck)
+ for (const KernelRecord &rec : toCheck)
{
if(rec.spent)
{
TRY_LOCK(wallet->cs_wallet, lockWallet);
if (lockWallet && !wallet->vMintingWalletUpdated.empty())
{
- BOOST_FOREACH(uint256 hash, wallet->vMintingWalletUpdated)
+ for (uint256 hash : wallet->vMintingWalletUpdated)
{
updated.append(hash);
CWalletTx wtx;
if(wallet->GetTransaction(hash, wtx))
{
- BOOST_FOREACH(const CTxIn& txin, wtx.vin)
+ for (const CTxIn& txin : wtx.vin)
{
updated.append(txin.prevout.hash);
}