From 55ee73d090c1c1bd6a46ea504fbfc909008e7012 Mon Sep 17 00:00:00 2001 From: Oleh Nikolaiev Date: Fri, 3 Jan 2025 12:09:58 +0000 Subject: [PATCH] IS 495 fix ms to sec --- SkaleCommon.h | 8 ++++---- node/Node.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SkaleCommon.h b/SkaleCommon.h index c8b181b9..24bb746b 100644 --- a/SkaleCommon.h +++ b/SkaleCommon.h @@ -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 diff --git a/node/Node.cpp b/node/Node.cpp index 82b4a2c8..019d81cc 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -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();