2 #include <boost/make_unique.hpp>
4 #include <fc/exception/exception.hpp>
12 #ifndef BLOGGING_START_DATE
13 #define BLOGGING_START_DATE "2018-06-12T09:00:00"
16 #ifndef FIFA_WORLD_CUP_2018_BOUNTY_CASHOUT_DATE
17 #define FIFA_WORLD_CUP_2018_BOUNTY_CASHOUT_DATE "2018-08-08T12:00:00"
20 #ifndef WITNESS_REWARD_MIGRATION_DATE
21 #define WITNESS_REWARD_MIGRATION_DATE "2018-07-12T00:00:00"
25 : blockid_pool_size(0xffff)
27 , vesting_withdraw_intervals(52)
29 , vesting_withdraw_interval_seconds(10)
31 , cashout_window_seconds(7200)
33 , upvote_lockout(
fc::minutes(30))
35 , active_sp_holders_reward_period(
fc::minutes(1))
37 , advertising_cashout_period_sec(60)
43 , upvote_lockout(
fc::hours(12))
45 , active_sp_holders_reward_period(
fc::days(7))
50 , reverse_auction_window_seconds(
fc::minutes(30))
52 , vote_regeneration_seconds(
fc::days(5))
53 , owner_auth_recovery_period(
fc::days(30))
54 , account_recovery_request_expiration_period(
fc::days(1))
55 , owner_update_limit(
fc::minutes(60))
57 , recent_rshares_decay_rate(
fc::days(15))
59 , rewards_initial_supply_period_in_days(2 * 365)
60 , guaranted_reward_supply_period_in_days(30)
61 , reward_increase_threshold_in_days(100)
63 , budgets_limit_per_owner(100)
65 , atomicswap_initiator_refund_lock_secs(48 * 3600)
66 , atomicswap_participant_refund_lock_secs(24 * 3600)
68 , atomicswap_limit_requested_contracts_per_owner(1000)
69 , atomicswap_limit_requested_contracts_per_recipient(10)
71 , min_vote_interval_sec(3)
73 , db_free_memory_threshold_mb(100)
75 , initial_date(
fc::time_point_sec::min())
79 , fifa_world_cup_2018_bounty_cashout_date(
82 , expiraton_for_registration_bonus(
fc::days(182))
86 , scorum_max_witnesses(21)
88 , scorum_max_voted_witnesses(20)
92 , scorum_hardfork_required_witnesses(17)
95 "Required: fifa_world_cup_2018_bounty_cashout_date >= blogging_start_date + cashout_window_seconds.");
99 "Invalid amount for hardfork required witnesses");
103 : blockid_pool_size(0xfff)
105 , vesting_withdraw_intervals(13)
106 , vesting_withdraw_interval_seconds(60 * 7)
108 , cashout_window_seconds(
fc::hours(1).to_seconds())
110 , upvote_lockout(
fc::minutes(5))
112 , active_sp_holders_reward_period(
fc::minutes(15))
114 , advertising_cashout_period_sec(15)
116 , reverse_auction_window_seconds(
fc::seconds(30))
118 , vote_regeneration_seconds(
fc::minutes(10))
120 , owner_auth_recovery_period(
fc::seconds(60))
121 , account_recovery_request_expiration_period(
fc::seconds(12))
122 , owner_update_limit(
fc::seconds(0))
124 , recent_rshares_decay_rate(
fc::hours(1))
126 , rewards_initial_supply_period_in_days(5)
127 , guaranted_reward_supply_period_in_days(2)
128 , reward_increase_threshold_in_days(3)
130 , budgets_limit_per_owner(8)
132 , atomicswap_initiator_refund_lock_secs(60 * 20)
133 , atomicswap_participant_refund_lock_secs(60 * 10)
135 , atomicswap_limit_requested_contracts_per_owner(5)
136 , atomicswap_limit_requested_contracts_per_recipient(2)
138 , min_vote_interval_sec(0)
140 , db_free_memory_threshold_mb(1)
142 , initial_date(
fc::time_point_sec::from_iso_string(
"2018-04-01T00:00:00"))
144 , blogging_start_date(initial_date + cashout_window_seconds * 10)
146 , fifa_world_cup_2018_bounty_cashout_date(blogging_start_date + cashout_window_seconds * 22)
148 , expiraton_for_registration_bonus(
fc::minutes(30))
150 , witness_reward_migration_date(initial_date + cashout_window_seconds * 10)
152 , scorum_max_witnesses(3)
154 , scorum_max_voted_witnesses(2)
156 , scorum_hardfork_required_witnesses(2)
161 "Invalid amount for hardfork required witnesses");
#define WITNESS_REWARD_MIGRATION_DATE
#define FIFA_WORLD_CUP_2018_BOUNTY_CASHOUT_DATE
#define BLOGGING_START_DATE
#define DAYS_TO_SECONDS(X)
#define SCORUM_MAX_WITNESSES_LIMIT
const config & get_config()
void override_config(std::unique_ptr< config > new_config)
const uint8_t scorum_max_witnesses
const fc::time_point_sec fifa_world_cup_2018_bounty_cashout_date
const uint32_t cashout_window_seconds
const uint8_t scorum_hardfork_required_witnesses
const fc::time_point_sec blogging_start_date
static std::unique_ptr< config > instance
const uint8_t scorum_max_voted_witnesses
config()
production config