Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use latest tfchain client and use uptimev2 #1978

Merged
merged 2 commits into from
Jun 15, 2023
Merged

use latest tfchain client and use uptimev2 #1978

merged 2 commits into from
Jun 15, 2023

Conversation

muhamadazmy
Copy link
Member

The uptime v2 also uses a local timestamp hint to make sure that reported uptie is in an acceptable range

The uptime v2 also uses a local timestamp hint to make
sure that reported uptie is in an acceptable range
@@ -57,7 +57,7 @@ func (u *Uptime) SendNow() (types.Hash, error) {
return types.Hash{}, errors.Wrap(err, "failed to get uptime")
}

return sub.UpdateNodeUptime(u.id, uptime)
return sub.UpdateNodeUptimeV2(u.id, uptime, uint64(time.Now().Unix()))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add in the documentation the change in behavior

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, done

@muhamadazmy muhamadazmy merged commit f946996 into main Jun 15, 2023
@muhamadazmy muhamadazmy deleted the uptime-hint branch June 15, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants