Quiet this stdout spam by default but enable it with -debug
This commit is contained in:
@@ -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
|
//This allows simulating a different height via CLI option, with hardcoded height as default
|
||||||
uint32_t nHardForkHeight = GetArg("-hardfork-height", nHushHardforkHeight);
|
uint32_t nHardForkHeight = GetArg("-hardfork-height", nHushHardforkHeight);
|
||||||
bool isactive = chainActive.Height() > nHardForkHeight;
|
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;
|
return isactive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user