Hardfork adaptivpow activation
This commit is contained in:
@@ -76,13 +76,13 @@ void WaitForShutdown(boost::thread_group* threadGroup)
|
|||||||
fprintf(stderr,"error: earlytx must be before block height %d or tx does not exist\n",KOMODO_EARLYTXID_HEIGHT);
|
fprintf(stderr,"error: earlytx must be before block height %d or tx does not exist\n",KOMODO_EARLYTXID_HEIGHT);
|
||||||
StartShutdown();
|
StartShutdown();
|
||||||
}
|
}
|
||||||
if ( ASSETCHAINS_ADAPTIVEPOW == 0 && (pindex= komodo_chainactive(1)) != 0 )
|
if ( ASSETCHAINS_STAKED == 0 && ASSETCHAINS_ADAPTIVEPOW == 0 && (pindex= komodo_chainactive(1)) != 0 )
|
||||||
{
|
{
|
||||||
if ( pindex->nTime > 1539612702 )
|
if ( pindex->nTime > ADAPTIVEPOW_CHANGETO_DEFAULTON )
|
||||||
{
|
{
|
||||||
ASSETCHAINS_ADAPTIVEPOW = 1;
|
ASSETCHAINS_ADAPTIVEPOW = 1;
|
||||||
fprintf(stderr,"default activate adaptivepow\n");
|
fprintf(stderr,"default activate adaptivepow\n");
|
||||||
} else fprintf(stderr,"height1 time %u vs %u\n",pindex->nTime,1539612702);
|
} else fprintf(stderr,"height1 time %u vs %u\n",pindex->nTime,ADAPTIVEPOW_CHANGETO_DEFAULTON);
|
||||||
} else fprintf(stderr,"cant find height 1\n");
|
} else fprintf(stderr,"cant find height 1\n");
|
||||||
if ( ASSETCHAINS_CBOPRET != 0 )
|
if ( ASSETCHAINS_CBOPRET != 0 )
|
||||||
komodo_pricesinit();
|
komodo_pricesinit();
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include "komodo_nk.h"
|
#include "komodo_nk.h"
|
||||||
|
|
||||||
#define KOMODO_EARLYTXID_HEIGHT 100
|
#define KOMODO_EARLYTXID_HEIGHT 100
|
||||||
|
#define ADAPTIVEPOW_CHANGETO_DEFAULTON 1572480000
|
||||||
#define ASSETCHAINS_MINHEIGHT 128
|
#define ASSETCHAINS_MINHEIGHT 128
|
||||||
#define ASSETCHAINS_MAX_ERAS 7
|
#define ASSETCHAINS_MAX_ERAS 7
|
||||||
#define KOMODO_ELECTION_GAP 2000
|
#define KOMODO_ELECTION_GAP 2000
|
||||||
|
|||||||
Reference in New Issue
Block a user