add global gpos parameters
This commit is contained in:
parent
88f18d16a7
commit
62d2c1c63b
2 changed files with 11 additions and 0 deletions
|
|
@ -226,3 +226,5 @@
|
||||||
#define TOURNAMENT_MAX_WHITELIST_LENGTH 1000
|
#define TOURNAMENT_MAX_WHITELIST_LENGTH 1000
|
||||||
#define TOURNAMENT_MAX_START_TIME_IN_FUTURE (60*60*24*7*4) // 1 month
|
#define TOURNAMENT_MAX_START_TIME_IN_FUTURE (60*60*24*7*4) // 1 month
|
||||||
#define TOURNAMENT_MAX_START_DELAY (60*60*24*7) // 1 week
|
#define TOURNAMENT_MAX_START_DELAY (60*60*24*7) // 1 week
|
||||||
|
#define GPOS_PERIOD (60*60*24*30*6) // 6 months
|
||||||
|
#define GPOS_SUBPERIOD (60*60*24*30) // 1 month
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@
|
||||||
#include <graphene/chain/protocol/types.hpp>
|
#include <graphene/chain/protocol/types.hpp>
|
||||||
#include <fc/smart_ref_fwd.hpp>
|
#include <fc/smart_ref_fwd.hpp>
|
||||||
|
|
||||||
|
#include <graphene/chain/hardfork.hpp>
|
||||||
|
|
||||||
namespace graphene { namespace chain { struct fee_schedule; } }
|
namespace graphene { namespace chain { struct fee_schedule; } }
|
||||||
|
|
||||||
namespace graphene { namespace chain {
|
namespace graphene { namespace chain {
|
||||||
|
|
@ -86,6 +88,10 @@ namespace graphene { namespace chain {
|
||||||
uint32_t maximum_tournament_start_time_in_future = TOURNAMENT_MAX_START_TIME_IN_FUTURE;
|
uint32_t maximum_tournament_start_time_in_future = TOURNAMENT_MAX_START_TIME_IN_FUTURE;
|
||||||
uint32_t maximum_tournament_start_delay = TOURNAMENT_MAX_START_DELAY;
|
uint32_t maximum_tournament_start_delay = TOURNAMENT_MAX_START_DELAY;
|
||||||
uint16_t maximum_tournament_number_of_wins = TOURNAMENT_MAX_NUMBER_OF_WINS;
|
uint16_t maximum_tournament_number_of_wins = TOURNAMENT_MAX_NUMBER_OF_WINS;
|
||||||
|
/* gpos parameters constraints */
|
||||||
|
uint32_t gpos_period = GPOS_PERIOD; /// toal seconds of current gpos period
|
||||||
|
uint32_t gpos_subperiod = GPOS_SUBPERIOD; /// gpos_period % gpos_subperiod = 0
|
||||||
|
time_point_sec gpos_period_start = HARDFORK_GPOS_TIME; /// current period start date
|
||||||
extension<parameter_extension> extensions;
|
extension<parameter_extension> extensions;
|
||||||
|
|
||||||
/** defined in fee_schedule.cpp */
|
/** defined in fee_schedule.cpp */
|
||||||
|
|
@ -161,5 +167,8 @@ FC_REFLECT( graphene::chain::chain_parameters,
|
||||||
(maximum_tournament_start_time_in_future)
|
(maximum_tournament_start_time_in_future)
|
||||||
(maximum_tournament_start_delay)
|
(maximum_tournament_start_delay)
|
||||||
(maximum_tournament_number_of_wins)
|
(maximum_tournament_number_of_wins)
|
||||||
|
(gpos_period)
|
||||||
|
(gpos_subperiod)
|
||||||
|
(gpos_period_start)
|
||||||
(extensions)
|
(extensions)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue