Skip to content

Sync Committee: Block Storage Fix#881

Merged
zadykian merged 1 commit intomainfrom
sync-committee/full-reset-fix
May 6, 2025
Merged

Sync Committee: Block Storage Fix#881
zadykian merged 1 commit intomainfrom
sync-committee/full-reset-fix

Conversation

@zadykian
Copy link
Copy Markdown
Contributor

@zadykian zadykian commented May 6, 2025

Sync Committee: Block Storage Fix

This PR addresses the following error encountered on nil-dev after a full state reset was triggered:

error preparing batch: error loading latest batch from the storage: batch with the specified id is not found, id=23d4376b-f92e-488a-abb6-8a3dc8cf6c20

Changes:

  • Fixed BlockStorage.ResetAllBatches(...) by setting latestBatchId to nil
  • Added BlockStorage.HasFreeSpace(...) method to avoid unnecessary batch creation in Aggregator

@zadykian zadykian added this pull request to the merge queue May 6, 2025
@x-mass x-mass removed this pull request from the merge queue due to a manual request May 6, 2025
* Fixed `BlockStorage.ResetAllBatches(...)` by setting `latestBatchId` to nil;
* Add `BloStorage.HasFreeSpace(...)` method to avoid unnecessary batch creation in `Aggregator`;
@zadykian zadykian force-pushed the sync-committee/full-reset-fix branch from e484289 to 6a04dfb Compare May 6, 2025 17:36
@zadykian zadykian enabled auto-merge May 6, 2025 17:37
@zadykian zadykian added this pull request to the merge queue May 6, 2025
Merged via the queue into main with commit 41a0acb May 6, 2025
16 checks passed
@zadykian zadykian deleted the sync-committee/full-reset-fix branch May 6, 2025 18:28
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