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

Bug/fix gas price metadata sync #2056

Merged
merged 5 commits into from
Aug 6, 2024
Merged

Conversation

MitchTurner
Copy link
Member

@MitchTurner MitchTurner commented Aug 5, 2024

  • Have gas price metadata start from latest block if there is no record
  • Fix bug in view lookups that creates a new view for every historical lookup :P

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

After merging, notify other teams

[Add or remove entries as needed]

@MitchTurner MitchTurner added the no changelog Skip the CI check of the changelog modification label Aug 5, 2024
@MitchTurner
Copy link
Member Author

Added no changelog because this is a bugfix to something in the same release

@MitchTurner MitchTurner marked this pull request as ready for review August 5, 2024 22:36
Some(BlockHeight::new(next_height))
);
let view = recovered_database.gas_price().latest_view().unwrap();
let previous_metadata = view
Copy link
Member

Choose a reason for hiding this comment

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

Why is previous metadata expected to be none?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because there shouldn't be any entries before the one we just added.

@MitchTurner MitchTurner merged commit 38cbc38 into master Aug 6, 2024
34 checks passed
@MitchTurner MitchTurner deleted the bug/fix-gas-price-metadata-sync branch August 6, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skip the CI check of the changelog modification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants