X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcblockchain.cpp;h=c537a46564bb0a49c4ea428b6d1563c9e5786dea;hb=HEAD;hp=69e436ce91811027806ebe0cc0966de4220c92da;hpb=c36e0f10905a4de6613ea223ccfd6e17fbdc737b;p=novacoin.git diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 69e436c..c537a46 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -8,7 +8,6 @@ #include #include #include -#include using namespace json_spirit; using namespace std; @@ -77,7 +76,7 @@ double GetPoSKernelPS() double dStakeKernelsTriedAvg = 0; int nStakesHandled = 0, nStakesTime = 0; - CBlockIndex* pindex = pindexBest;; + CBlockIndex* pindex = pindexBest; CBlockIndex* pindexPrevStake = NULL; while (pindex && nStakesHandled < nPoSInterval) @@ -128,7 +127,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fPri result.push_back(Pair("modifier", strprintf("%016" PRIx64, blockindex->nStakeModifier))); result.push_back(Pair("modifierchecksum", strprintf("%08x", blockindex->nStakeModifierChecksum))); Array txinfo; - BOOST_FOREACH (const CTransaction& tx, block.vtx) + for (const CTransaction& tx : block.vtx) { if (fPrintTransactionDetail) { @@ -210,7 +209,7 @@ Value getrawmempool(const Array& params, bool fHelp) mempool.queryHashes(vtxid); Array a; - BOOST_FOREACH(const uint256& hash, vtxid) + for (const uint256& hash : vtxid) a.push_back(hash.ToString()); return a;