Skip to content

Sync Committee: Subgraph Fetcher Fix#704

Merged
zadykian merged 2 commits intomainfrom
sync-committee/fix/fetcher
Mar 31, 2025
Merged

Sync Committee: Subgraph Fetcher Fix#704
zadykian merged 2 commits intomainfrom
sync-committee/fix/fetcher

Conversation

@zadykian
Copy link
Copy Markdown
Contributor

@zadykian zadykian commented Mar 31, 2025

Sync Committee: Subgraph Fetcher Fix

Do not terminate batch construction with an error if no new blocks were produced in some execution shards

  • Updated logic of subgraphFetcher.fetchShardChainSegment() method
  • Added new test: Test_No_Progress_In_Exec_Shard
  • Removed error ErrBatchNotReady, which is no longer used

This PR addresses errors like the following one:

error creating batch, mainHash=0x0000f626d8172288a46951e92e19b4fc0f0259b724283faf5a1a9fe64bff23bf:
failed to fetch shard chain segments:
error fetching shard chain segment,
    childId=0300000000031ecddd1c58b92eb6bf5644486e4aef71875928b801eb485527cf718dcd12:
cannot fetch chain segment:
block mismatch:
    [hash=0x00031ecddd1c58b92eb6bf5644486e4aef71875928b801eb485527cf718dcd12]
    block number mismatch: expected>0, got=0

Do not terminate batch construction with an error if no new blocks were produced in some execution shards

* Updated logic of `subgraphFetcher.fetchShardChainSegment()` method
* Added new test: `Test_No_Progress_In_Exec_Shard`
* Removed error `ErrBatchNotReady`, which is no longer used;
Do not panic if service execution returned `context.Cancelled` error
@zadykian zadykian self-assigned this Mar 31, 2025
@zadykian zadykian marked this pull request as ready for review March 31, 2025 10:26
@zadykian zadykian added this pull request to the merge queue Mar 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 31, 2025
@zadykian zadykian added this pull request to the merge queue Mar 31, 2025
Merged via the queue into main with commit cbbce53 Mar 31, 2025
15 checks passed
@zadykian zadykian deleted the sync-committee/fix/fetcher branch March 31, 2025 13:08
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.

2 participants