1
0

Require renter settings to mount

This commit is contained in:
Scott E. Graves
2017-03-29 20:11:15 -05:00
parent e94d7169e4
commit 688c56ad5c
4 changed files with 70 additions and 27 deletions

View File

@@ -5,10 +5,6 @@
#define SIDRIVE_VERSION_STRING "0.0.1"
#define COMPAT_SIAD_VERSION "1.1.2"
const std::uint8_t SIA_BLOCKS_PER_MIN = 10;
const std::uint32_t MINUTES_PER_MONTH = (730 * 60);
const std::uint32_t SIA_BLOCKS_PER_MONTH = MINUTES_PER_MONTH / SIA_BLOCKS_PER_MIN;
#ifdef _WIN32
// Disable DLL-interface warnings
#pragma warning(disable: 4251)
@@ -117,6 +113,13 @@ inline bool ApiSuccess(const T& t) {
typedef ttmath::UInt<256> Hastings;
typedef ttmath::Big<1, 30> SiaCurrency;
const std::uint8_t SIA_BLOCK_TIME_MINS = 10;
const std::uint32_t MINUTES_PER_MONTH = (730 * 60);
const std::uint32_t SIA_BLOCKS_PER_MONTH = MINUTES_PER_MONTH / SIA_BLOCK_TIME_MINS;
const std::uint32_t SIA_DEFAULT_HOST_COUNT = 24;
const std::uint32_t SIA_DEFAULT_RENEW_WINDOW = (SIA_BLOCK_TIME_MINS * (SIA_DEFAULT_HOST_COUNT * 2));
const SiaCurrency SIA_DEFAULT_MINIMUM_FUNDS = 4000;
/*
BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
BigNumber.config({ DECIMAL_PLACES: 30 })