Just few suggestion for new code:
* reformat the source in KGW function. i mean space indent, not tabs. {} in newlines, etc.
* You dont need the "if" here, because kgw only run if height > 73000:
if (BlockReading->nHeight > 73000) LatestBlockTime = BlockReading->GetBlockTime();
Just use this:
LatestBlockTime = BlockReading->GetBlockTime();
* Same this, you can remove the if (nHeight > 73000) check :
if (BlockReading->nHeight > 73000) {
if (PastRateActualSeconds < 1) { PastRateActualSeconds = 1; }
}
else {
if (PastRateActualSeconds < 0) { PastRateActualSeconds = 0; }
}
(and else branch can be removed, it is never run, because height is always higher than 73000)