Blackcoin Lore

This commit is contained in:
janko33bd
2017-05-30 21:33:31 +02:00
parent 597c9b42e5
commit 2fdd12b2ea
141 changed files with 4385 additions and 3872 deletions

View File

@@ -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