diff --git a/src/miner.cpp b/src/miner.cpp index 392d9aaa4..6893b8d4f 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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);