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

Update block count in a week #891

Merged

Commits on Feb 2, 2024

  1. feat: implement BlocksInWeek script task

    The BlocksInWeek task provides a very close approximate of number of
    blocks mined during one week.
    
    Supported networks: mainnnet, sepolia.
    
    Example usage:
    
    npx tsx scripts/task/task.ts BlocksInWeek --network=mainnet
    npx tsx scripts/task/task.ts BlocksInWeek --network=sepolia
    
    Resolves: sherlock-audit/2023-12-ubiquity-judging#230
    gitcoindev committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    0e481f1 View commit details
    Browse the repository at this point in the history
  2. feat: update weekly block count to 49930

    Set weekly block count to 49930 as measured in February 2024
    
    npx tsx scripts/task/task.ts BlocksInWeek --network=mainnet
    ...
    Calculating number of blocks in the last week...
    Recent average block time: 12 seconds
    Estimated blocks in a week best case 50400
    Produced 49930 blocks, 470 worst than the best case
    
    Resolves: sherlock-audit/2023-12-ubiquity-judging#230
    gitcoindev committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    56207cb View commit details
    Browse the repository at this point in the history
  3. feat: rename task function to funcBlocksInAWeek

    As proposed during pull request review.
    gitcoindev committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    04907d7 View commit details
    Browse the repository at this point in the history