#include "scrypt.h"
+#include <openssl/evp.h>
+
#ifdef _MSC_VER
#define INLINE __inline
#else
#include "scrypt.h"
+#include <openssl/evp.h>
+
static inline uint32_t le32dec(const void *pp)
{
const uint8_t *p = (uint8_t const *)pp;
#include "kernel.h"
#include "random.h"
#include "wallet.h"
+#include "scrypt.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()).c_str());
}
+uint256 CBlock::GetHash() const
+{
+ return scrypt_blockhash((const uint8_t*)&nVersion);
+}
void CBlock::UpdateTime(const CBlockIndex* pindexPrev)
{
#include "sync.h"
#include "net.h"
#include "script.h"
-#include "scrypt.h"
#include <algorithm>
#include <limits>
return (nBits == 0);
}
- uint256 GetHash() const
- {
- return scrypt_blockhash((const uint8_t*)&nVersion);
- }
+ uint256 GetHash() const;
int64_t GetBlockTime() const
{
#define SCRYPT_H
#include <stdint.h>
-#include <openssl/evp.h>
#include "uint256.h"
#define SCRYPT_BUFFER_SIZE (131072 + 63)