|
|
@ -9,6 +9,7 @@
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
class CBlock;
|
|
|
|
class CBlock;
|
|
|
|
|
|
|
|
class CBlockHeader;
|
|
|
|
class CBlockIndex;
|
|
|
|
class CBlockIndex;
|
|
|
|
class CReserveKey;
|
|
|
|
class CReserveKey;
|
|
|
|
class CScript;
|
|
|
|
class CScript;
|
|
|
@ -25,6 +26,7 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey);
|
|
|
|
void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
|
|
|
|
void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
|
|
|
|
/** Check mined block */
|
|
|
|
/** Check mined block */
|
|
|
|
bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
|
|
|
|
bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey);
|
|
|
|
|
|
|
|
void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev);
|
|
|
|
|
|
|
|
|
|
|
|
extern double dHashesPerSec;
|
|
|
|
extern double dHashesPerSec;
|
|
|
|
extern int64_t nHPSTimerStart;
|
|
|
|
extern int64_t nHPSTimerStart;
|
|
|
|