Blackcoin Lore
This commit is contained in:
11
src/miner.h
11
src/miner.h
@@ -15,6 +15,7 @@ class CChainParams;
|
||||
class CReserveKey;
|
||||
class CScript;
|
||||
class CWallet;
|
||||
class CBlock;
|
||||
namespace Consensus { struct Params; };
|
||||
|
||||
static const bool DEFAULT_GENERATE = false;
|
||||
@@ -31,10 +32,14 @@ struct CBlockTemplate
|
||||
|
||||
/** Run the miner threads */
|
||||
void GenerateBitcoins(bool fGenerate, int nThreads, const CChainParams& chainparams);
|
||||
void ThreadStakeMiner(CWallet *pwallet, const CChainParams& chainparams);
|
||||
/** Run the miner threads */
|
||||
bool SignBlock(CBlock& block, CWallet& wallet, int64_t& nFees);
|
||||
/** Generate a new block, without valid proof-of-work */
|
||||
CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& scriptPubKeyIn);
|
||||
CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& scriptPubKeyIn, int64_t* nFees = 0, bool fProofOfStake = false);
|
||||
/** Modify the extranonce in a block */
|
||||
void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
|
||||
int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
|
||||
|
||||
int64_t UpdateTime(CBlock* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
|
||||
bool CheckStake(CBlock* pblock, CWallet& wallet, const CChainParams& chainparams);
|
||||
CAmount GetProofOfWorkReward();
|
||||
#endif // BITCOIN_MINER_H
|
||||
|
||||
Reference in New Issue
Block a user