add era gap, and change to start at era 1 instead of 0.

This commit is contained in:
blackjok3r
2018-09-24 23:22:38 +08:00
parent 3ae2594212
commit 475e8bc5cb
4 changed files with 76 additions and 60 deletions

View File

@@ -2,13 +2,12 @@
#ifndef NOTARIES_STAKED
#define NOTARIES_STAKED
static const int STAKED_NOTARIES_TIMESTAMP = 1537780949;
static const int STAKED_NOTARIES_TIMESTAMP1 = 1537791749;
static const int STAKED_NOTARIES_TIMESTAMP2 = 1537802549;
static const int STAKED_NOTARIES_TIMESTAMP3 = 1537813349;
static const int STAKED_ERA_GAP = 777;
extern const char *notaries_STAKED[][2];
extern int num_notaries_STAKED;
static const int STAKED_NOTARIES_TIMESTAMP1 = 1537780949;
static const int STAKED_NOTARIES_TIMESTAMP2 = 1537791749;
static const int STAKED_NOTARIES_TIMESTAMP3 = 1537802549;
static const int STAKED_NOTARIES_TIMESTAMP4 = 1537813349;
extern const char *notaries_STAKED1[][2];
extern int num_notaries_STAKED1;
@@ -19,6 +18,9 @@ extern int num_notaries_STAKED2;
extern const char *notaries_STAKED3[][2];
extern int num_notaries_STAKED3;
extern const char *notaries_STAKED4[][2];
extern int num_notaries_STAKED4;
int is_STAKED(const char *chain_name);
int STAKED_era(int timestamp);