test new era logic
This commit is contained in:
11
src/komodo.h
11
src/komodo.h
@@ -818,15 +818,12 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
||||
int8_t numSN = numStakedNotaries(tmp_pubkeys,staked_era);
|
||||
UpdateNotaryAddrs(tmp_pubkeys,numSN);
|
||||
STAKED_ERA = staked_era;
|
||||
if ( NOTARYADDRS[0][0] != 0 )
|
||||
if ( NOTARYADDRS[0][0] != 0 && NOTARY_PUBKEY33[0] != 0 )
|
||||
{
|
||||
if ( NOTARY_PUBKEY33[0] != 0 )
|
||||
if ( (IS_STAKED_NOTARY= updateStakedNotary()) > -1 )
|
||||
{
|
||||
if ( (IS_STAKED_NOTARY= updateStakedNotary()) > -1 )
|
||||
{
|
||||
IS_KOMODO_NOTARY = 0;
|
||||
fprintf(stderr, "Staked Notary Protection Active! NotaryID.%d RADD.%s ERA.%d\n",IS_STAKED_NOTARY,NOTARY_ADDRESS.c_str(),staked_era);
|
||||
}
|
||||
IS_KOMODO_NOTARY = 0;
|
||||
fprintf(stderr, "Staked Notary Protection Active! NotaryID.%d RADD.%s ERA.%d\n",IS_STAKED_NOTARY,NOTARY_ADDRESS.c_str(),staked_era);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
#include "crosschain.h"
|
||||
#include "cc/CCinclude.h"
|
||||
|
||||
static const int STAKED_ERA_GAP = 777;
|
||||
static const int STAKED_ERA_GAP = 300;
|
||||
|
||||
static const int STAKED_NOTARIES_TIMESTAMP1 = 1541422105;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP2 = 1541423282;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP3 = 1541424459;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP1 = 1541494052;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP2 = 1541494052;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP3 = 1541494052;
|
||||
static const int STAKED_NOTARIES_TIMESTAMP4 = 1604244444;
|
||||
|
||||
extern const char *notaries_STAKED1[][2];
|
||||
|
||||
Reference in New Issue
Block a user