 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_KERNEL_H
7 #define BITCOIN_KERNEL_H
14 static const unsigned int MODIFIER_INTERVAL = 60;
15 static const unsigned int MODIFIER_INTERVAL_TESTNET = 60;
21 static const int MODIFIER_INTERVAL_RATIO = 3;
24 bool GetKernelStakeModifier(
uint256 hashBlockFrom, uint64_t& nStakeModifier,
int& nStakeModifierHeight, int64_t& nStakeModifierTime,
bool fPrintProofOfStake);
32 bool Stake(
CStakeInput* stakeInput,
unsigned int nBits,
unsigned int nTimeBlockFrom,
unsigned int& nTimeTx,
uint256& hashProofOfStake);
45 int64_t
GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd);
47 #endif // BITCOIN_KERNEL_H
int64_t GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd)
bool CheckStakeModifierCheckpoints(int nHeight, unsigned int nStakeModifierChecksum)
bool CheckStake(const CDataStream &ssUniqueID, CAmount nValueIn, const uint64_t nStakeModifier, const uint256 &bnTarget, unsigned int nTimeBlockFrom, unsigned int &nTimeTx, uint256 &hashProofOfStake)
unsigned int nModifierInterval
unsigned int GetStakeModifierChecksum(const CBlockIndex *pindex)
bool GetKernelStakeModifier(uint256 hashBlockFrom, uint64_t &nStakeModifier, int &nStakeModifierHeight, int64_t &nStakeModifierTime, bool fPrintProofOfStake)
int64_t CAmount
Amount in PRCY (Can be negative)
bool CheckProofOfStake(const CBlock block, uint256 &hashProofOfStake, std::unique_ptr< CStakeInput > &stake, int nPreviousBlockHeight)
256-bit unsigned big integer.
bool ComputeNextStakeModifier(const CBlockIndex *pindexPrev, uint64_t &nStakeModifier, bool &fGeneratedStakeModifier)
bool Stake(CStakeInput *stakeInput, unsigned int nBits, unsigned int nTimeBlockFrom, unsigned int &nTimeTx, uint256 &hashProofOfStake)
bool stakeTargetHit(const uint256 &hashProofOfStake, const int64_t &nValueIn, const uint256 &bnTargetPerCoinDay)
Double ended buffer combining vector and stream-like interfaces.
The block chain is a tree shaped structure starting with the genesis block at the root,...
unsigned int getIntervalVersion(bool fTestNet)