Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ project(PIVX)

set(BDB_VER "4.8.30")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/contrib/cmake")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ")
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
Expand Down Expand Up @@ -199,6 +199,7 @@ set(SERVER_SOURCES
./src/blocksignature.cpp
./src/chain.cpp
./src/checkpoints.cpp
./src/consensus/tx_verify.cpp
./src/httprpc.cpp
./src/httpserver.cpp
./src/indirectmap.h
Expand Down Expand Up @@ -231,9 +232,9 @@ set(SERVER_SOURCES
./src/timedata.cpp
./src/torcontrol.cpp
./src/sapling/sapling_txdb.cpp
./src/sapling/sapling_validation.cpp
./src/txdb.cpp
./src/txmempool.cpp
./src/sapling/sapling_validation.cpp
./src/validation.cpp
./src/validationinterface.cpp
./src/zpivchain.cpp
Expand Down Expand Up @@ -385,7 +386,6 @@ set(COMMON_SOURCES
./src/compressor.cpp
./src/tiertwo/specialtx_validation.cpp
./src/consensus/merkle.cpp
./src/consensus/tx_verify.cpp
./src/consensus/zerocoin_verify.cpp
./src/primitives/block.cpp
./src/primitives/transaction.cpp
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ case $host in
lt_cv_deplibs_check_method="pass_all"
;;
esac
dnl Require C++11 compiler (no GNU extensions)
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
dnl Require C++14 compiler (no GNU extensions)
AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory], [nodefault])
dnl Check if -latomic is required for <std::atomic>
CHECK_ATOMIC

Expand Down
6 changes: 6 additions & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ class CMainParams : public CChainParams
consensus.vUpgrades[Consensus::UPGRADE_V3_4].nActivationHeight = 1967000;
consensus.vUpgrades[Consensus::UPGRADE_V4_0].nActivationHeight = 2153200;
consensus.vUpgrades[Consensus::UPGRADE_V5_0].nActivationHeight = 2700500;
consensus.vUpgrades[Consensus::UPGRADE_V6_0].nActivationHeight =
Consensus::NetworkUpgrade::NO_ACTIVATION_HEIGHT;

consensus.vUpgrades[Consensus::UPGRADE_ZC].hashActivationBlock =
uint256S("0x5b2482eca24caf2a46bb22e0545db7b7037282733faa3a42ec20542509999a64");
Expand Down Expand Up @@ -329,6 +331,8 @@ class CTestNetParams : public CChainParams
consensus.vUpgrades[Consensus::UPGRADE_V3_4].nActivationHeight = 201;
consensus.vUpgrades[Consensus::UPGRADE_V4_0].nActivationHeight = 201;
consensus.vUpgrades[Consensus::UPGRADE_V5_0].nActivationHeight = 201;
consensus.vUpgrades[Consensus::UPGRADE_V6_0].nActivationHeight =
Consensus::NetworkUpgrade::NO_ACTIVATION_HEIGHT;

/**
* The message start string is designed to be unlikely to occur in normal data.
Expand Down Expand Up @@ -454,6 +458,8 @@ class CRegTestParams : public CChainParams
consensus.vUpgrades[Consensus::UPGRADE_V4_0].nActivationHeight =
Consensus::NetworkUpgrade::ALWAYS_ACTIVE;
consensus.vUpgrades[Consensus::UPGRADE_V5_0].nActivationHeight = 300;
consensus.vUpgrades[Consensus::UPGRADE_V6_0].nActivationHeight =
Consensus::NetworkUpgrade::NO_ACTIVATION_HEIGHT;

/**
* The message start string is designed to be unlikely to occur in normal data.
Expand Down
1 change: 1 addition & 0 deletions src/consensus/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ enum UpgradeIndex : uint32_t {
UPGRADE_V3_4,
UPGRADE_V4_0,
UPGRADE_V5_0,
UPGRADE_V6_0,
UPGRADE_TESTDUMMY,
// NOTE: Also add new upgrades to NetworkUpgradeInfo in upgrades.cpp
MAX_NETWORK_UPGRADES
Expand Down
4 changes: 4 additions & 0 deletions src/consensus/upgrades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ const struct NUInfo NetworkUpgradeInfo[Consensus::MAX_NETWORK_UPGRADES] = {
/*.strName =*/ "v5_shield",
/*.strInfo =*/ "Sapling Shield - start block v8 - start transaction v3",
},
{
/*.strName =*/ "v6_evo",
/*.strInfo =*/ "Deterministic Masternodes",
},
{
/*.strName =*/ "Test_dummy",
/*.strInfo =*/ "Test dummy info",
Expand Down
2 changes: 1 addition & 1 deletion src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ target_include_directories(qt_stuff PUBLIC ${CMAKE_SOURCE_DIR}/src
${OPENSSL_INCLUDE_DIR}
${BerkeleyDB_INCLUDE_DIRS}
)
set_property(TARGET qt_stuff PROPERTY CXX_STANDARD 11)
set_property(TARGET qt_stuff PROPERTY CXX_STANDARD 14)

file(GLOB QT_TRANSLATIONS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/locale/*.ts)

Expand Down
1 change: 1 addition & 0 deletions src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ std::vector<CSporkDef> sporkDefs = {
MAKE_SPORK_DEF(SPORK_18_ZEROCOIN_PUBLICSPEND_V4, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_19_COLDSTAKING_MAINTENANCE, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_20_SAPLING_MAINTENANCE, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_21_LEGACY_MNS_MAX_HEIGHT, 4070908800ULL), // OFF
};

CSporkManager sporkManager;
Expand Down
1 change: 1 addition & 0 deletions src/sporkid.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum SporkId : int32_t {
SPORK_18_ZEROCOIN_PUBLICSPEND_V4 = 10018,
SPORK_19_COLDSTAKING_MAINTENANCE = 10019,
SPORK_20_SAPLING_MAINTENANCE = 10020,
SPORK_21_LEGACY_MNS_MAX_HEIGHT = 10021,

SPORK_INVALID = -1
};
Expand Down