Skip to content

Conversation

@mpskowron
Copy link
Contributor

Description

Title should be self explanatory

Checklist

  • Commit sequence broadly makes sense and commits have useful messages.
  • The size limit of 400 LOC isn't needlessly exceeded
  • The PR refers to a JIRA ticket (if one exists)
  • New tests are added if needed and existing tests are updated.
  • New code is documented and existing documentation is updated.
  • Relevant logging and metrics added
  • Any changes are noted in the changelog.md for affected crate
  • Self-reviewed the diff

@mpskowron mpskowron requested review from AmbientTea and LGLO November 13, 2025 19:35
// reverse of computation in `get_latest_stable_block_for`
let block_number = u32::from_be_bytes(hash.0[..4].try_into().unwrap());
let timestamp = block_number * 20000;
let timestamp = u64::from(block_number) * 20000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be reading the last 8 bytes to u64 in the line above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

block_number is used as u32 later in this function

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.

3 participants