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 MassaTime for timestamp in milliseconds in massa-protocol-worker #3976

Merged
merged 4 commits into from
May 25, 2023

Conversation

litchipi
Copy link
Contributor

Closes #3854

Use nanoseconds instead of milliseconds as timestamps in the protocol worker

Signed-off-by: Litchi Pi <litchi.pi@proton.me>
@litchipi litchipi changed the base branch from main to testnet_23 May 24, 2023 12:00
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
@litchipi litchipi changed the title Nanoseconds as timestamp in protocol worker Draft: Nanoseconds as timestamp in protocol worker May 24, 2023
@litchipi litchipi marked this pull request as draft May 24, 2023 13:09
@litchipi litchipi changed the title Draft: Nanoseconds as timestamp in protocol worker Use MassaTime for timestamp in milliseconds in massa-protocol-worker May 24, 2023
@@ -189,7 +189,7 @@ impl Announcement {
let timestamp = SystemTime::now()
Copy link
Member

Choose a reason for hiding this comment

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

you should use MassaTime::now() no ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry didn't push yet

Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
@litchipi litchipi marked this pull request as ready for review May 25, 2023 09:31
@litchipi litchipi merged commit 72f5b82 into testnet_23 May 25, 2023
19 checks passed
@AurelienFT AurelienFT deleted the timestamps_nanos branch May 29, 2023 09:45
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.

Use millis with massa-time in massa-protocol
2 participants