update timestamp incrementer to move at least one minute each time

This commit is contained in:
Hardhat Chad
2024-07-02 16:26:26 +00:00
parent 3b1039b469
commit cbfc7afc2b

View File

@@ -156,7 +156,10 @@ pub fn process_mine<'a, 'info>(
.0;
// Update time trackers
proof.last_hash_at = clock.unix_timestamp;
proof.last_hash_at = proof
.last_hash_at
.saturating_add(ONE_MINUTE)
.max(clock.unix_timestamp);
// Update lifetime stats
proof.total_hashes = proof.total_hashes.saturating_add(1);