From a3258de21769939d34b241fb6fe6ae97f53de06c Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 12 Jul 2022 23:29:36 -0400 Subject: [PATCH] less debug by default from IsInitialBlockDownload --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 627a99f90..b8e64dc27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2405,7 +2405,9 @@ bool IsInitialBlockDownload() LogPrintf("Leaving InitialBlockDownload (latching to false)\n"); latchToFalse.store(true, std::memory_order_relaxed); } else { - fprintf(stderr,"%s: state.%d ht.%d vs %d, t.%u\n",__func__, state,(int32_t)chainActive.Height(),(uint32_t)ptr->GetHeight(),(int32_t)ptr->GetBlockTime()); + if (fDebug) { + fprintf(stderr,"%s: state.%d ht.%d vs %d, t.%u\n",__func__, state,(int32_t)chainActive.Height(),(uint32_t)ptr->GetHeight(),(int32_t)ptr->GetBlockTime()); + } } return state; }