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

Refactor blockpoller initialization to use first streamable block #67

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Commits on Nov 12, 2024

  1. Refactor blockpoller initialization to use first streamable block

    Replaced start block with first streamable block in BlockPoller to ensure accurate initiation. Added a check for the state file's existence and integrated state initialization with fetching the first streamable block. Updated tests accordingly.
    billettc committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    06b587c View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Refactor BlockPoller to support generics and client handling

    Refactor BlockPoller to support generic clients with type parameter 'C'. Updated associated methods, test functions, and interfaces to accommodate this change. This enhancement includes moving the retry mechanism and client handling to the poller, improving flexibility for different client types.
    billettc committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    2901a03 View commit details
    Browse the repository at this point in the history
  2. Fix file existence check logic in state_file.go

    Removed redundant os.IsExist(err) check since err == nil is sufficient to determine file existence. This simplifies the code and avoids ambiguity in interpreting the error state.
    billettc committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    7e21141 View commit details
    Browse the repository at this point in the history
  3. Refactor block fetch functions to include context parameter

    Updated several block fetch functions and utility methods to accept a context parameter for better cancellation and timeout control. Enhanced TestBlockClient to handle block fetching delays, and adjusted tests to accommodate these changes.
    billettc committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    0308e67 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Refactor Clients initialization to accept timeout duration

    Updated the Clients struct to include a maxBlockFetchDuration parameter, enhancing flexibility in specifying timeout durations for block fetching. This change was reflected in the initialization function and associated test cases.
    billettc committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    2bcd5c5 View commit details
    Browse the repository at this point in the history
  2. Add rolling strategy support to RPC clients

    Implemented new rolling strategy interfaces and updated RPC clients to utilize the rolling strategies. Introduced two strategies: RoundRobin and AlwaysUseFirst, modifying existing tests to incorporate these changes.
    billettc committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    cf7a94a View commit details
    Browse the repository at this point in the history