From e40a65c2a8eb7d58e9f72f7649c3581038879161 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 26 Dec 2019 20:58:26 -0500 Subject: [PATCH] Quiet this stdout spam by default but enable it with -debug --- src/komodo_bitcoind.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index e14daccbe..bdbadf434 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -707,7 +707,9 @@ bool hush_hardfork_active(uint32_t time) //This allows simulating a different height via CLI option, with hardcoded height as default uint32_t nHardForkHeight = GetArg("-hardfork-height", nHushHardforkHeight); bool isactive = chainActive.Height() > nHardForkHeight; - fprintf(stderr, "%s: active=%d at height=%d and forkheight=%d\n", __FUNCTION__, (int)isactive, chainActive.Height(), nHardForkHeight); + if(fDebug) { + fprintf(stderr, "%s: active=%d at height=%d and forkheight=%d\n", __FUNCTION__, (int)isactive, chainActive.Height(), nHardForkHeight); + } return isactive; }