Quiet this stdout spam by default but enable it with -debug

This commit is contained in:
Duke Leto
2019-12-26 20:58:26 -05:00
parent ec3f202942
commit e40a65c2a8

View File

@@ -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;
}