Give the randomx block interval and block lag CLI options

This commit is contained in:
Duke Leto
2022-07-01 17:47:03 -04:00
parent 05cbc86a00
commit 26129a6339

View File

@@ -1214,11 +1214,12 @@ void static RandomXMiner()
}
fprintf(stderr,"RandomXMiner: created randomx flags + cache\n");
// The key block will change every ~21.3 hours with a 75s block time
// With the defaults of 1024 and 64
// the key block will change every ~21.3 hours with a 75s block time
// and every ~17 hours with the default 60s block time for HSCs
int randomxInterval = 1024;
int randomxInterval = GetArg("-ac_randomx_interval",1024);
// This lag is 80 mins for 75s blocktime and 64 mins for 60s (default) blocktime for HSCs
int randomxBlockLag = 64;
int randomxBlockLag = GetArg("-ac_randomx_lag", 64);
fprintf(stderr,"RandomXMiner: using initial key with interval=%d and lag=%d\n", randomxInterval, randomxBlockLag);
fprintf(stderr,"RandomXMiner: Mining_height=%u\n", Mining_height);