chore: log when worldState time is behind real time + make sure client knows fissures are active #2562

Merged
Sainan merged 4 commits from time-constraints-polish into main 2025-07-30 01:49:35 -07:00
Showing only changes of commit 62b9ed31bf - Show all commits

View File

@ -1338,7 +1338,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
const timeSecs = getIdealTimeSatsifyingConstraints(constraints);
if (constraints.length != 0) {
const delta = Math.trunc(Date.now() / 1000) - timeSecs;
if (delta != 0) {
if (delta > 1) {
logger.debug(
`reported time is ${delta} seconds behind real time to satisfy selected constraints (${constraints.map(x => x.name).join(", ")})`
);