X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernel.cpp;h=ea2b43e91c0f879f1ef97c5d0818f22cdf9b7b6c;hb=5f3f7465db4444e49dd4a896f88c090b40d0a303;hp=a8f4f5d6398e923f4e9044122ceee9d95e2654e0;hpb=4577465fb947bce73cfabd791d4c02ecc0adbb63;p=novacoin.git diff --git a/src/kernel.cpp b/src/kernel.cpp index a8f4f5d..ea2b43e 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -162,13 +162,13 @@ static bool SelectBlockFromCandidates(vector >& vSortedBy if (fSelected && hashSelection < hashBest) { hashBest = hashSelection; - *pindexSelected = (const CBlockIndex*) pindex; + *pindexSelected = pindex; } else if (!fSelected) { fSelected = true; hashBest = hashSelection; - *pindexSelected = (const CBlockIndex*) pindex; + *pindexSelected = pindex; } } if (fDebug && GetBoolArg("-printstakemodifier"))