X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernel.h;h=464e401c8a7eae0710120f18f7ea82644f23ad97;hb=2404891de8ac5b357d0abde90f2e286a3153fdef;hp=3278a85608d487aa7c1c5af9edb0b3fd9c94151a;hpb=ac0d0a1cdff8d9493c11c29bca6ed7c82377ab2f;p=novacoin.git diff --git a/src/kernel.h b/src/kernel.h index 3278a85..464e401 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -7,8 +7,6 @@ #include "main.h" #include "wallet.h" -using namespace std; - // ChainDB upgrade time extern unsigned int nModifierUpgradeTime; @@ -36,9 +34,6 @@ bool CheckStakeKernelHash(unsigned int nBits, const CBlock& blockFrom, uint32_t // Scan given kernel for solutions bool ScanKernelForward(unsigned char *kernel, uint32_t nBits, uint32_t nInputTxTime, int64_t nValueIn, std::pair &SearchInterval, std::vector > &solutions); -// Scan given context for kernel solutions -bool ScanContextBackward(SHA256_CTX &ctx, uint32_t nBits, uint32_t nInputTxTime, int64_t nValueIn, std::pair &SearchInterval, std::pair &solution); - // Check kernel hash target and coinstake signature // Sets hashProofOfStake on success return bool CheckProofOfStake(const CTransaction& tx, unsigned int nBits, uint256& hashProofOfStake, uint256& targetProofOfStake); @@ -58,8 +53,7 @@ inline int64_t GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd) // // Maximum TimeWeight is 90 days. - return min(nIntervalEnd - nIntervalBeginning - nStakeMinAge, (int64_t)nStakeMaxAge); + return std::min(nIntervalEnd - nIntervalBeginning - nStakeMinAge, (int64_t)nStakeMaxAge); } - -#endif // PPCOIN_KERNEL_H +#endif // PPCOIN_KERNEL_H \ No newline at end of file