Headers cleanup
authorsvost <ya.nowa@yandex.ru>
Tue, 13 Feb 2024 17:18:59 +0000 (20:18 +0300)
committersvost <ya.nowa@yandex.ru>
Tue, 13 Feb 2024 17:18:59 +0000 (20:18 +0300)
src/crypto/scrypt/generic/scrypt-generic.cpp
src/crypto/scrypt/intrin/scrypt-intrin.cpp
src/main.cpp
src/main.h
src/scrypt.h

index c4dc5b5..4e7af46 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "scrypt.h"
 
+#include <openssl/evp.h>
+
 #ifdef _MSC_VER
 #define INLINE __inline
 #else
index 04613b9..3336271 100644 (file)
@@ -35,6 +35,8 @@
 
 #include "scrypt.h"
 
+#include <openssl/evp.h>
+
 static inline uint32_t le32dec(const void *pp)
 {
     const uint8_t *p = (uint8_t const *)pp;
index 79f8e92..d864ade 100644 (file)
@@ -14,6 +14,7 @@
 #include "kernel.h"
 #include "random.h"
 #include "wallet.h"
+#include "scrypt.h"
 
 #include <boost/filesystem.hpp>
 #include <boost/filesystem/fstream.hpp>
@@ -1236,6 +1237,10 @@ void static InvalidChainFound(CBlockIndex* pindexNew)
       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)
 {
index 205110e..b6bf6c7 100644 (file)
@@ -9,7 +9,6 @@
 #include "sync.h"
 #include "net.h"
 #include "script.h"
-#include "scrypt.h"
 
 #include <algorithm>
 #include <limits>
@@ -935,10 +934,7 @@ public:
         return (nBits == 0);
     }
 
-    uint256 GetHash() const
-    {
-        return scrypt_blockhash((const uint8_t*)&nVersion);
-    }
+    uint256 GetHash() const;
 
     int64_t GetBlockTime() const
     {
index 7d5aadc..7a94911 100644 (file)
@@ -2,7 +2,6 @@
 #define SCRYPT_H
 
 #include <stdint.h>
-#include <openssl/evp.h>
 #include "uint256.h"
 
 #define SCRYPT_BUFFER_SIZE (131072 + 63)