CODE MOVE ONLY
This PR creates a new unit which will be handling soft fork logic. For now all we do is move IsSuperMajority() from main.cpp to consensus/softforks.cpp.
CODE MOVE ONLY
This PR creates a new unit which will be handling soft fork logic. For now all we do is move IsSuperMajority() from main.cpp to consensus/softforks.cpp.
Please clean up class/struct Params:
0src pavel$ grep "[class|strict] Params" consensus/*h
1consensus/params.h:struct Params {
2consensus/softforks.h:class Params;
3src pavel$
6+#define BITCOIN_SOFTFORKS_H
7+
8+class CBlockIndex;
9+namespace Consensus {
10+
11+class Params;
struct
.
98@@ -99,6 +99,7 @@ BITCOIN_CORE_H = \
99 compressor.h \
100 consensus/consensus.h \
101 consensus/params.h \
102+ consensus/softforks.h \
0@@ -0,0 +1,25 @@
1+// Copyright (c) 2009-2015 Eric Lombrozo, The Bitcoin Core developers
2+// Distributed under the MIT software license, see the accompanying
3+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+#include "chain.h"
6+#include "consensus/params.h"
7+#include "softforks.h"
8+
9+using namespace Consensus::SoftForks;