X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkernel.h;h=9ee2ce144a9235f997acd6a32ad6d9e3c006fa7c;hp=ee3653ca7dd3b2fdc810cb4d025f61bfce586e98;hb=77a43545b4491b9703d803765da9059d2bdd5aaa;hpb=f138f8e25f7282834f368b46ebb4072615441c2c diff --git a/src/kernel.h b/src/kernel.h index ee3653c..9ee2ce1 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -23,11 +23,11 @@ static const int MODIFIER_INTERVAL_RATIO = 3; bool IsFixedModifierInterval(unsigned int nTimeBlock); // Compute the hash modifier for proof-of-stake -bool ComputeNextStakeModifier(const CBlockIndex* pindexCurrent, uint64& nStakeModifier, bool& fGeneratedStakeModifier); +bool ComputeNextStakeModifier(const CBlockIndex* pindexCurrent, uint64_t& nStakeModifier, bool& fGeneratedStakeModifier); // The stake modifier used to hash for a stake kernel is chosen as the stake // modifier about a selection interval later than the coin generating the kernel -bool GetKernelStakeModifier(uint256 hashBlockFrom, uint64& nStakeModifier); +bool GetKernelStakeModifier(uint256 hashBlockFrom, uint64_t& nStakeModifier); // Check whether stake kernel meets hash target // Sets hashProofOfStake on success return @@ -46,10 +46,10 @@ typedef std::set > CoinsSet; // Preloaded coins metadata // txid => ((txindex, (tx, vout.n)), (block, modifier)) -typedef std::map, std::pair >, std::pair > > MetaMap; +typedef std::map, std::pair >, std::pair > > MetaMap; // Scan given coins set for kernel solution -bool ScanForStakeKernelHash(MetaMap &mapMeta, KernelSearchSettings &settings, CoinsSet::value_type &kernelcoin, unsigned int &nTimeTx, unsigned int &nBlockTime, uint64 &nKernelsTried, uint64 &nCoinDaysTried); +bool ScanForStakeKernelHash(MetaMap &mapMeta, KernelSearchSettings &settings, CoinsSet::value_type &kernelcoin, unsigned int &nTimeTx, unsigned int &nBlockTime, uint64_t &nKernelsTried, uint64_t &nCoinDaysTried); // Check kernel hash target and coinstake signature // Sets hashProofOfStake on success return @@ -62,6 +62,6 @@ unsigned int GetStakeModifierChecksum(const CBlockIndex* pindex); bool CheckStakeModifierCheckpoints(int nHeight, unsigned int nStakeModifierChecksum); // Get time weight using supplied timestamps -int64 GetWeight(int64 nIntervalBeginning, int64 nIntervalEnd); +int64_t GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd); #endif // PPCOIN_KERNEL_H