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

CCIP-3420: Fix IsRequestTriggeredWithinTimeframe #14498

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Commits on Sep 19, 2024

  1. CCIP-3420: Fix IsRequestTriggeredWithinTimeframe (#1445)

    ## Motivation
    The prior approach to find if there is traffic in a lane was not
    detecting the transactions properly. It could be due to the
    `CCIPSendRequestedWatcher` captures the event after it is initiated not
    any transaction before that.
    
    ## Solution
    The revised approach is to use the FilterCCIPSendRequested by a past
    derived block number and see if there is any traffic. The block number
    is derived by this formula:
    `filterFromBlock = latestBlockNumber -
    (SkipRequestIfAnotherRequestTriggeredWithin/avgBlockTime)`
    By this approach, we will be able to find traffic better.
    
    https://smartcontract-it.atlassian.net/browse/CCIP-3420
    b-gopalswami committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    6b09b7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b65e93 View commit details
    Browse the repository at this point in the history