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 performance.now for snapshot duration #4480

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Use performance.now for snapshot duration #4480

merged 1 commit into from
Dec 13, 2023

Conversation

dguenther
Copy link
Member

Summary

No significant issue here, but generally we should prefer performance.now or process.hrtime when tracking durations to avoid odd bugs with computer clocks changing. Similar PR was made to the node app: iron-fish/ironfish-node-app#69

Testing Plan

Tested that snapshots still time out properly when disconnecting from the Internet.

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@dguenther dguenther requested a review from a team as a code owner December 12, 2023 18:46
@dguenther dguenther merged commit b583a59 into staging Dec 13, 2023
10 checks passed
@dguenther dguenther deleted the use-perf-now branch December 13, 2023 14:25
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.

None yet

2 participants