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

Simulate as anyone #15866

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

gregnazario
Copy link
Contributor

Description

How Has This Been Tested?

Key Areas to Review

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Full Node (API, Indexer, etc.)
  • Move/Aptos Virtual Machine
  • Aptos Framework
  • Aptos CLI/SDK
  • Developer Infrastructure
  • Move Compiler
  • Other (specify)

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

@gregnazario gregnazario requested review from a team and banool as code owners February 1, 2025 18:50
Copy link

trunk-io bot commented Feb 1, 2025

⏱️ 7s total CI duration on this PR

Job Cumulative Duration Recent Runs
permission-check 4s 🟩
permission-check 3s 🟩

settingsfeedbackdocs ⋅ learn more about trunk.io

// Warn local user that clock is skewed behind the blockchain.
// There will always be a little lag from real time to blockchain time
if now_usecs < state.timestamp_usecs - ACCEPTED_CLOCK_SKEW_US {
eprintln!("Local clock is is skewed from blockchain clock. Clock is more than {} seconds behind the blockchain {}", ACCEPTED_CLOCK_SKEW_US, state.timestamp_usecs / US_IN_SECS );
Copy link

Choose a reason for hiding this comment

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

There is a duplicate "is" in the error message: "Local clock is is skewed". Consider updating to "Local clock is skewed" for better readability.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

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.

1 participant