Skip to content

Commit

Permalink
IS 495 fix ms to sec
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Jan 3, 2025
1 parent 116a691 commit 55ee73d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions SkaleCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ static constexpr uint64_t WAIT_AFTER_NETWORK_ERROR_MS = 3000;

static constexpr uint64_t CONNECTION_REFUSED_LOG_INTERVAL_MS = 10 * 60 * 1000;

static constexpr uint64_t CATCHUP_TIMEOUT_MS = 30 * 1000;
static constexpr uint64_t CATCHUP_TIMEOUT_SEC = 30;

static constexpr uint64_t SYNC_NODE_CATCHUP_TIMEOUT_MS = 300 * 1000;
static constexpr uint64_t SYNC_NODE_CATCHUP_TIMEOUT_SEC = 300;

static constexpr uint64_t READ_JSON_HEADER_TIMEOUT_MS = 6 * 1000;
static constexpr uint64_t READ_JSON_HEADER_TIMEOUT_SEC = 6;

static constexpr uint64_t SYNC_NODE_READ_JSON_HEADER_TIMEOUT_MS = 300 * 1000;
static constexpr uint64_t SYNC_NODE_READ_JSON_HEADER_TIMEOUT_SEC = 300;

// Non-tunable params

Expand Down
8 changes: 4 additions & 4 deletions node/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ void Node::initParamsFromConfig() {
maxTransactionsPerBlock =
getParamUint64( "maxTransactionsPerBlock", MAX_TRANSACTIONS_PER_BLOCK );
minBlockIntervalMs = getParamUint64( "minBlockIntervalMs", MIN_BLOCK_INTERVAL_MS );
catchupTimeoutSec = getParamUint64( "catchupTimeoutSec", CATCHUP_TIMEOUT_MS );
catchupTimeoutSec = getParamUint64( "catchupTimeoutSec", CATCHUP_TIMEOUT_SEC );
syncNodecatchupTimeoutSec =
getParamUint64( "syncNodecatchupTimeoutSec", SYNC_NODE_CATCHUP_TIMEOUT_MS );
getParamUint64( "syncNodecatchupTimeoutSec", SYNC_NODE_CATCHUP_TIMEOUT_SEC );
readJsonHeaderTimeoutSec =
getParamUint64( "readJsonHeaderTimeoutSec", READ_JSON_HEADER_TIMEOUT_MS );
getParamUint64( "readJsonHeaderTimeoutSec", READ_JSON_HEADER_TIMEOUT_SEC );
syncNodereadJsonHeaderTimeoutSec =
getParamUint64( "syncNodereadJsonHeaderTimeoutSec", SYNC_NODE_READ_JSON_HEADER_TIMEOUT_MS );
getParamUint64( "syncNodereadJsonHeaderTimeoutSec", SYNC_NODE_READ_JSON_HEADER_TIMEOUT_SEC );
testNet = ( getParamUint64( "isTestNet", 0 ) > 0 );

blockDBSize = storageLimits->getBlockDbSize();
Expand Down

0 comments on commit 55ee73d

Please sign in to comment.