Test network upgrade logic

Also demonstrates how to specify a network upgrade.
This commit is contained in:
Jack Grigg
2018-01-17 11:42:56 +00:00
parent b174b7e330
commit f52da91139
5 changed files with 155 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace Consensus {
enum UpgradeIndex {
// Sprout must be first
BASE_SPROUT,
UPGRADE_TESTDUMMY,
// NOTE: Also add new upgrades to NetworkUpgradeInfo in upgrades.cpp
MAX_NETWORK_UPGRADES
};

View File

@@ -13,6 +13,11 @@ const struct NUInfo NetworkUpgradeInfo[Consensus::MAX_NETWORK_UPGRADES] = {
/*.nBranchId =*/ 0,
/*.strName =*/ "Sprout",
/*.strInfo =*/ "The Zcash network at launch",
},
{
/*.nBranchId =*/ 0x74736554,
/*.strName =*/ "Test dummy",
/*.strInfo =*/ "Test dummy info",
}
};