#include <boost/assign/list_of.hpp>
#include "db.h"
#include "kernel.h"
#include "script/interpreter.h"
#include "timedata.h"
#include "util.h"
#include "stakeinput.h"
#include "utilmoneystr.h"
Go to the source code of this file.
|
| unsigned int | getIntervalVersion (bool fTestNet) |
| |
| int64_t | GetWeight (int64_t nIntervalBeginning, int64_t nIntervalEnd) |
| |
| bool | ComputeNextStakeModifier (const CBlockIndex *pindexPrev, uint64_t &nStakeModifier, bool &fGeneratedStakeModifier) |
| |
| bool | GetKernelStakeModifier (uint256 hashBlockFrom, uint64_t &nStakeModifier, int &nStakeModifierHeight, int64_t &nStakeModifierTime, bool fPrintProofOfStake) |
| |
| bool | stakeTargetHit (const uint256 &hashProofOfStake, const int64_t &nValueIn, const uint256 &bnTargetPerCoinDay) |
| |
| bool | CheckStake (const CDataStream &ssUniqueID, CAmount nValueIn, const uint64_t nStakeModifier, const uint256 &bnTarget, unsigned int nTimeBlockFrom, unsigned int &nTimeTx, uint256 &hashProofOfStake) |
| |
| bool | Stake (CStakeInput *stakeInput, unsigned int nBits, unsigned int nTimeBlockFrom, unsigned int &nTimeTx, uint256 &hashProofOfStake) |
| |
| bool | CheckProofOfStake (const CBlock block, uint256 &hashProofOfStake, std::unique_ptr< CStakeInput > &stake, int nPreviousBlockHeight) |
| |
| unsigned int | GetStakeModifierChecksum (const CBlockIndex *pindex) |
| |
| bool | CheckStakeModifierCheckpoints (int nHeight, unsigned int nStakeModifierChecksum) |
| |
◆ CheckProofOfStake()
| bool CheckProofOfStake |
( |
const CBlock |
block, |
|
|
uint256 & |
hashProofOfStake, |
|
|
std::unique_ptr< CStakeInput > & |
stake, |
|
|
int |
nPreviousBlockHeight |
|
) |
| |
◆ CheckStake()
| bool CheckStake |
( |
const CDataStream & |
ssUniqueID, |
|
|
CAmount |
nValueIn, |
|
|
const uint64_t |
nStakeModifier, |
|
|
const uint256 & |
bnTarget, |
|
|
unsigned int |
nTimeBlockFrom, |
|
|
unsigned int & |
nTimeTx, |
|
|
uint256 & |
hashProofOfStake |
|
) |
| |
◆ CheckStakeModifierCheckpoints()
| bool CheckStakeModifierCheckpoints |
( |
int |
nHeight, |
|
|
unsigned int |
nStakeModifierChecksum |
|
) |
| |
◆ ComputeNextStakeModifier()
| bool ComputeNextStakeModifier |
( |
const CBlockIndex * |
pindexPrev, |
|
|
uint64_t & |
nStakeModifier, |
|
|
bool & |
fGeneratedStakeModifier |
|
) |
| |
◆ getIntervalVersion()
| unsigned int getIntervalVersion |
( |
bool |
fTestNet | ) |
|
◆ GetKernelStakeModifier()
| bool GetKernelStakeModifier |
( |
uint256 |
hashBlockFrom, |
|
|
uint64_t & |
nStakeModifier, |
|
|
int & |
nStakeModifierHeight, |
|
|
int64_t & |
nStakeModifierTime, |
|
|
bool |
fPrintProofOfStake |
|
) |
| |
◆ GetStakeModifierChecksum()
| unsigned int GetStakeModifierChecksum |
( |
const CBlockIndex * |
pindex | ) |
|
◆ GetWeight()
| int64_t GetWeight |
( |
int64_t |
nIntervalBeginning, |
|
|
int64_t |
nIntervalEnd |
|
) |
| |
◆ Stake()
| bool Stake |
( |
CStakeInput * |
stakeInput, |
|
|
unsigned int |
nBits, |
|
|
unsigned int |
nTimeBlockFrom, |
|
|
unsigned int & |
nTimeTx, |
|
|
uint256 & |
hashProofOfStake |
|
) |
| |
◆ stakeTargetHit()
| bool stakeTargetHit |
( |
const uint256 & |
hashProofOfStake, |
|
|
const int64_t & |
nValueIn, |
|
|
const uint256 & |
bnTargetPerCoinDay |
|
) |
| |
◆ fTestNet
◆ nModifierInterval
| unsigned int nModifierInterval |
◆ nStakeTargetSpacing
| int nStakeTargetSpacing = 60 |