X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fminer.cpp;fp=src%2Fminer.cpp;h=f9ec6ebb2ac79b90c3040688d09ad874a4e5a69a;hp=1c4d28388f7fabe30ebed3c4fda9533600937580;hb=5098ea454db9132aa0f576921ca9d1a69429d146;hpb=47d3ceb3da845e216fc9577cbf52f8b5600e5f93 diff --git a/src/miner.cpp b/src/miner.cpp index 1c4d283..f9ec6eb 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -190,7 +190,7 @@ std::shared_ptr CreateNewBlock(CWallet* pwallet, CTransaction *txCoinSta double dPriority = 0; int64_t nTotalIn = 0; bool fMissingInputs = false; - BOOST_FOREACH(const CTxIn& txin, tx.vin) + for (const CTxIn& txin : tx.vin) { // Read prev transaction CTransaction txPrev; @@ -337,7 +337,7 @@ std::shared_ptr CreateNewBlock(CWallet* pwallet, CTransaction *txCoinSta uint256 hash = tx.GetHash(); if (mapDependers.count(hash)) { - BOOST_FOREACH(COrphan* porphan, mapDependers[hash]) + for (COrphan* porphan : mapDependers[hash]) { if (!porphan->setDependsOn.empty()) {