Try to set KMD Notary seasons correctly with our hardfork height

This commit is contained in:
Duke Leto
2019-12-21 00:02:16 -05:00
parent 6d843777d8
commit 4c42d5f93f
3 changed files with 8 additions and 6 deletions

View File

@@ -50,11 +50,14 @@
#define NUM_KMD_SEASONS 4
#define NUM_KMD_NOTARIES 64
extern const uint32_t nStakedDecemberHardforkTimestamp; //December 2019 hardfork
// Approximately mid-day Jan 21 EST
const uint32_t nHushHardforkHeight = 162000;
extern const int32_t nDecemberHardforkHeight; //December 2019 hardfork
const uint32_t nStakedDecemberHardforkTimestamp = 1576840000; //December 2019 hardfork 12/20/2019 @ 11:06am (UTC)
static const uint32_t KMD_SEASON_TIMESTAMPS[NUM_KMD_SEASONS] = {1525132800, 1563148800, nStakedDecemberHardforkTimestamp, 1751328000};
static const int32_t KMD_SEASON_HEIGHTS[NUM_KMD_SEASONS] = {814000, 1444000, nDecemberHardforkHeight, 7113400};
static const int32_t KMD_SEASON_HEIGHTS[NUM_KMD_SEASONS] = {1,2,nHushHardforkHeight, 5*nHushHardforkHeight};
// Era array of pubkeys. Add extra seasons to bottom as requried, after adding appropriate info above.
static const char *notaries_elected[NUM_KMD_SEASONS][NUM_KMD_NOTARIES][2] =