chore: update gravity-aptos dep for EpochBlockInfo#305
Open
chore: update gravity-aptos dep for EpochBlockInfo#305
Conversation
Update gravity-api-types dependency to track the feat/add-epoch-block-info branch of gravity-aptos, which adds EpochBlockInfo to BlockInfo.
Lchangliang
pushed a commit
to Galxe/gravity-sdk
that referenced
this pull request
Apr 13, 2026
## Summary
Implement non-blocking epoch change in the block buffer manager and fix
deprecated `futures_channel` API usage.
### Non-blocking Epoch Change
Previously, when an epoch change block was detected, subsequent blocks
in the same epoch ("suffix blocks") were dropped via
`release_inflight_blocks()`, causing consensus to block waiting for
execution results that would never arrive.
**Changes:**
1. **`block_buffer_manager.rs` — `set_compute_res()`**: When an epoch
change is detected, immediately find all subsequent `Ordered` blocks in
the same epoch and set `StateComputeResult::new_dummy()` as their
compute result. This allows consensus to consume these results instantly
without blocking.
2. **`block_buffer_manager.rs` — `get_committed_blocks()`**: Skip suffix
blocks past the `latest_epoch_change_block_number` boundary. These
blocks have dummy execution results and were never executed by reth, so
they must not enter the reth commit path.
### Fix deprecated `try_next()` → `try_recv()`
Replace all deprecated
`futures_channel::mpsc::UnboundedReceiver::try_next()` calls with
`try_recv()` across the consensus crate.
### Dependency Updates
- Update `gaptos` to branch `feat/add-epoch-block-info`
(Galxe/gravity-aptos#57)
- Update `greth` to branch `feat/add-epoch-block-info`
(Galxe/gravity-reth#305)
## Related PRs
- Galxe/gravity-aptos#57
- Galxe/gravity-reth#305
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update
gravity-api-typesdependency to track thefeat/add-epoch-block-infobranch ofgravity-aptos, which addsEpochBlockInfotoBlockInfo.Related PRs