#ifndef BITCOIN_MAIN_H
#define BITCOIN_MAIN_H
-#include <algorithm>
-
#include "timestamps.h"
#include "sync.h"
#include "net.h"
#include "script.h"
-#include "scrypt.h"
+#include <algorithm>
#include <limits>
#include <list>
#include <map>
class CAddress;
class CInv;
-class CRequestTracker;
class CNode;
//
bool CheckProofOfWork(uint256 hash, unsigned int nBits);
unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake);
-int64_t GetProofOfWorkReward(unsigned int nBits, int64_t nFees=0);
+int64_t GetProofOfWorkReward(unsigned int nBits);
int64_t GetProofOfStakeReward(int64_t nCoinAge, unsigned int nBits, int64_t nTime, bool bCoinYearOnly=false);
unsigned int ComputeMinWork(unsigned int nBase, int64_t nTime);
unsigned int ComputeMinStake(unsigned int nBase, int64_t nTime, unsigned int nBlockTime);
return (nBits == 0);
}
- uint256 GetHash() const
- {
- return scrypt_blockhash((const uint8_t*)&nVersion);
- }
+ uint256 GetHash() const;
int64_t GetBlockTime() const
{