X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkernel.cpp;h=ea2b43e91c0f879f1ef97c5d0818f22cdf9b7b6c;hp=a8f4f5d6398e923f4e9044122ceee9d95e2654e0;hb=40a76f11c7056c53f71bfc60419ba7354016f55f;hpb=f1c39767b83720bad25d1e47c7f49a01ab95c0f9 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"))