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

feat: Store block timestamps. #44

Merged
merged 5 commits into from
Sep 30, 2024
Merged

Conversation

ajnavarro
Copy link
Collaborator

@ajnavarro ajnavarro commented Sep 3, 2024

I considered backward compatibility when adding the timestamp field into the JSON struct.

I took into account backward compatibility when adding the timestamp
field into the JSON struct.

I tried to add a test to check if we are still backward compatible. It
seems that the std.Tx struct changed over time, so we won't be able to
recover previous data.

Signed-off-by: Antonio Navarro Perez <[email protected]>
Signed-off-by: Antonio Navarro Perez <[email protected]>
Copy link

@deelawn deelawn left a comment

Choose a reason for hiding this comment

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

Nice job. I left a few comments; nothing major.

backup/client/client.go Outdated Show resolved Hide resolved
types/types.go Outdated Show resolved Hide resolved
Copy link

Choose a reason for hiding this comment

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

Do we want a test with a timestamp in the raw data as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If I understood correctly, this is already done at backup_test.go

Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

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

pre-approve; agree with dylan's comments.

backup/backup.go Show resolved Hide resolved
types/types.go Outdated Show resolved Hide resolved
Signed-off-by: Antonio Navarro Perez <[email protected]>
Signed-off-by: Antonio Navarro Perez <[email protected]>
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

Looks good 💯

@ajnavarro ajnavarro merged commit 83b3c2f into main Sep 30, 2024
3 checks passed
@ajnavarro ajnavarro deleted the feat/store-block-timestamps branch September 30, 2024 11:30
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.

4 participants