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

fix EligibleAt null / NewNullTime #471

Merged
merged 2 commits into from
Apr 11, 2024
Merged

fix EligibleAt null / NewNullTime #471

merged 2 commits into from
Apr 11, 2024

Conversation

metachris
Copy link
Collaborator

@metachris metachris commented Jun 19, 2023

📝 Summary

Fixes #470

NewNullTime would always return a valid time, even if the input is null time. This is fixed in this PR.

Changes to DB: if non-eligible block builder submissions are saved, before it would store a valid time for eligible_at and now it will store null in the database. This is the only field affected.

Code:

TODO?

  • add a migration to fix the existing data? It's a lot of data and would probably take quite long to run, so maybe not

✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2023

Codecov Report

Merging #471 (5c2ff74) into main (fab68c4) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #471   +/-   ##
=======================================
  Coverage   30.86%   30.86%           
=======================================
  Files          24       24           
  Lines        4736     4736           
=======================================
  Hits         1462     1462           
  Misses       3076     3076           
  Partials      198      198           
Flag Coverage Δ
unittests 30.86% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
database/types.go 27.27% <100.00%> (ø)

@metachris metachris requested a review from michaelneuder June 19, 2023 19:39
avalonche
avalonche previously approved these changes Jun 20, 2023
@metachris metachris merged commit ce0265f into main Apr 11, 2024
@metachris metachris deleted the nulltime branch April 11, 2024 18: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.

eligible_at in mainnet_builder_block_submisison for failed simulations
3 participants