diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 37e3e28a7..ab4bf9840 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -179,9 +179,11 @@ constexpr uint64_t SAFEX_MINIMUM_TOKEN_STAKE_AMOUNT = 10000 constexpr uint64_t SAFEX_DEFAULT_TOKEN_STAKE_EXPIRY_PERIOD = 500000; constexpr uint64_t SAFEX_DEFAULT_INTERVAL_PERIOD_FAKECHAIN = 10; //blocks constexpr uint64_t SAFEX_DEFAULT_INTERVAL_PERIOD_TESTNET = 10; //blocks +constexpr uint64_t SAFEX_DEFAULT_INTERVAL_PERIOD_STAGENET = 100; //blocks constexpr uint64_t SAFEX_DEFAULT_INTERVAL_PERIOD = 1000; //blocks constexpr uint64_t SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_FAKECHAIN = SAFEX_DEFAULT_INTERVAL_PERIOD_FAKECHAIN*3; //blocks constexpr uint64_t SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_TESTNET = SAFEX_DEFAULT_INTERVAL_PERIOD_TESTNET*1; //blocks +constexpr uint64_t SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_STAGENET = SAFEX_DEFAULT_INTERVAL_PERIOD_STAGENET*10; //blocks constexpr uint64_t SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD = SAFEX_DEFAULT_INTERVAL_PERIOD*10; //blocks //Safex network fee constants @@ -191,7 +193,8 @@ constexpr uint64_t SAFEX_DEFAULT_NETWORK_FEE_PERCENTAGE = 5; constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_FEE = 100*SAFEX_TOKEN; constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_FAKECHAIN = 1; constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_TESTNET = 10; -constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD = 150;// TBD +constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_STAGENET = 300; +constexpr uint64_t SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD = 1500;// TBD //Safex account constants constexpr uint64_t SAFEX_ACCOUNT_USERNAME_MAX_SIZE = 32; diff --git a/src/safex/safex_core.h b/src/safex/safex_core.h index ffd88fdd1..89cba3c13 100644 --- a/src/safex/safex_core.h +++ b/src/safex/safex_core.h @@ -137,6 +137,8 @@ namespace safex return SAFEX_DEFAULT_INTERVAL_PERIOD_FAKECHAIN; else if (nettype == cryptonote::network_type::TESTNET) return SAFEX_DEFAULT_INTERVAL_PERIOD_TESTNET; + else if (nettype == cryptonote::network_type::STAGENET) + return SAFEX_DEFAULT_INTERVAL_PERIOD_STAGENET; else return SAFEX_DEFAULT_INTERVAL_PERIOD; } @@ -221,6 +223,8 @@ namespace safex return SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_FAKECHAIN; else if (nettype == cryptonote::network_type::TESTNET) return SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_TESTNET; + else if(nettype == cryptonote::network_type::STAGENET) + return SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD_STAGENET; else return SAFEX_DEFAULT_MINUMUM_TOKEN_STAKE_PERIOD; } @@ -236,6 +240,8 @@ namespace safex return SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_FAKECHAIN; else if (nettype == cryptonote::network_type::TESTNET) return SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_TESTNET; + else if(nettype == cryptonote::network_type::STAGENET) + return SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD_STAGENET; else return SAFEX_CREATE_ACCOUNT_TOKEN_LOCK_PERIOD; }