Skip to content

Changed HK epoch-related prints to prevent future confusion#53

Merged
fadeto404 merged 2 commits intomasterfrom
hk_time_ui_fix
Jan 8, 2026
Merged

Changed HK epoch-related prints to prevent future confusion#53
fadeto404 merged 2 commits intomasterfrom
hk_time_ui_fix

Conversation

@fadeto404
Copy link
Contributor

Recent issues with HK were likely caused by the manual entry of a HK time offset that was far ahead (months) of the actual HK epoch. The use of relative-time HK requests with an epoch this far off the true epoch causes confusion in the HK search algorithm, such as:

2026-01-06 14:34:44.559 15/15: No luck with block 0xF63BE36B - looking for timestamp 2209851, found 14388236, error is -12178385

When manually retrieving the time offset with hk retrieve -o the UI prints out both the current time and the epoch time. A lapse in attention of a user likely caused them to use the current time rather than the true epoch.

Example of old output:
At 2026-01-07 16:15:42: Updating HK node 5804 EPOCH by 0 sec to 2025-07-23 12:46:47

This simple change removes any confusion by removing the current time in the output. Both CSH and Loki logging (if enabled) has timestamps anyway. Additionally, it also prints out the epoch in its raw timestamp format (along with a human-readable ISO-formatted datetime) removing the necessity for conversion by the user if working with the times manually.

Example of new output:
HK: Updating HK node 5804 EPOCH by -10000000 sec to 2025-10-09 08:53:20 (1760000000)

@fadeto404 fadeto404 merged commit d0f07da into master Jan 8, 2026
2 checks passed
@fadeto404 fadeto404 deleted the hk_time_ui_fix branch January 8, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant