From 16d4645d1d281852cfba781a26d4958b70c19958 Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Tue, 29 Aug 2023 08:24:11 -0700 Subject: [PATCH] Update comments --- src/main/Config.cpp | 8 ++++++-- src/main/Config.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/Config.cpp b/src/main/Config.cpp index 1513159ba7..de5a0cfe42 100644 --- a/src/main/Config.cpp +++ b/src/main/Config.cpp @@ -1478,8 +1478,12 @@ Config::processConfig(std::shared_ptr t) { TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE = readBool(item); - LOG_WARNING(DEFAULT_LOG, "Overriding Soroban limits with " - "TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE"); + if (TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE) + { + LOG_WARNING(DEFAULT_LOG, + "Overriding Soroban limits with " + "TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE"); + } } #endif else if (item.first == "ARTIFICIALLY_SLEEP_MAIN_THREAD_FOR_TESTING") diff --git a/src/main/Config.h b/src/main/Config.h index afb3d0ca10..2852815e6b 100644 --- a/src/main/Config.h +++ b/src/main/Config.h @@ -577,7 +577,7 @@ class Config : public std::enable_shared_from_this // for testing. uint32_t TESTING_MINIMUM_PERSISTENT_ENTRY_LIFETIME; - //TODO: add comment + // Increase all initial max limits to higher values for testing bool TESTING_SOROBAN_HIGH_LIMIT_OVERRIDE; #endif