Wipe main.h from kernel.h
authorsvost <ya.nowa@yandex.ru>
Tue, 13 Feb 2024 17:45:35 +0000 (20:45 +0300)
committersvost <ya.nowa@yandex.ru>
Tue, 13 Feb 2024 17:45:35 +0000 (20:45 +0300)
src/kernel.cpp
src/kernel.h
src/kernel_worker.cpp
src/txdb-leveldb.cpp

index a1feab8..536f821 100644 (file)
@@ -8,6 +8,7 @@
 #include "kernel.h"
 #include "kernel_worker.h"
 #include "txdb-leveldb.h"
+#include "main.h"
 
 extern unsigned int nStakeTargetSpacing;
 
index e41b9a4..02e2b71 100644 (file)
@@ -4,9 +4,14 @@
 #ifndef PPCOIN_KERNEL_H
 #define PPCOIN_KERNEL_H
 
-#include "main.h"
+class CBlock;
+class CBlockIndex;
+class CTransaction;
+class COutPoint;
+class uint256;
 
 extern unsigned int nStakeMaxAge;
+extern unsigned int nStakeMinAge;
 
 // ChainDB upgrade time
 extern unsigned int nModifierUpgradeTime;
index 1c66963..631f289 100644 (file)
@@ -2,6 +2,9 @@
 #include "uint256.h"
 #include "kernel.h"
 #include "kernel_worker.h"
+#include "util.h"
+
+#include <openssl/sha.h>
 
 using namespace std;
 
index 5ccf07d..69a29b0 100644 (file)
@@ -6,6 +6,7 @@
 #include "txdb-leveldb.h"
 #include "kernel.h"
 #include "checkpoints.h"
+#include "main.h"
 
 #include <boost/version.hpp>
 #include <boost/filesystem.hpp>