Try to set KMD Notary seasons correctly with our hardfork height
This commit is contained in:
@@ -700,12 +700,12 @@ bool komodo_checkopret(CBlock *pblock, CScript &merkleroot)
|
|||||||
return(merkleroot.IsOpReturn() && merkleroot == komodo_makeopret(pblock, false));
|
return(merkleroot.IsOpReturn() && merkleroot == komodo_makeopret(pblock, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define HUSH_HARDFORK1 (162000)
|
|
||||||
|
extern const uint32_t nHushHardforkHeight;
|
||||||
|
|
||||||
bool hush_hardfork_active(uint32_t time)
|
bool hush_hardfork_active(uint32_t time)
|
||||||
{
|
{
|
||||||
// Approximately mid-day Jan 21 EST
|
return (chainActive.Height() > nHushHardforkHeight);
|
||||||
return ( chainActive.Height() > HUSH_HARDFORK1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MarmaraPoScheck(char *destaddr,CScript opret,CTransaction staketx);
|
bool MarmaraPoScheck(char *destaddr,CScript opret,CTransaction staketx);
|
||||||
|
|||||||
@@ -50,11 +50,14 @@
|
|||||||
#define NUM_KMD_SEASONS 4
|
#define NUM_KMD_SEASONS 4
|
||||||
#define NUM_KMD_NOTARIES 64
|
#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
|
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 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.
|
// 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] =
|
static const char *notaries_elected[NUM_KMD_SEASONS][NUM_KMD_NOTARIES][2] =
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ int32_t NUM_PRICES; uint32_t *PVALS;
|
|||||||
struct knotaries_entry *Pubkeys;
|
struct knotaries_entry *Pubkeys;
|
||||||
|
|
||||||
struct komodo_state KOMODO_STATES[34];
|
struct komodo_state KOMODO_STATES[34];
|
||||||
const uint32_t nStakedDecemberHardforkTimestamp = 1576840000; //December 2019 hardfork 12/20/2019 @ 11:06am (UTC)
|
|
||||||
const int32_t nDecemberHardforkHeight = 1670000; //December 2019 hardfork
|
const int32_t nDecemberHardforkHeight = 1670000; //December 2019 hardfork
|
||||||
|
|
||||||
#define _COINBASE_MATURITY 100
|
#define _COINBASE_MATURITY 100
|
||||||
|
|||||||
Reference in New Issue
Block a user