Skip to content

chore: update gravity-aptos dep for EpochBlockInfo#305

Open
keanji-x wants to merge 2 commits intomainfrom
feat/add-epoch-block-info
Open

chore: update gravity-aptos dep for EpochBlockInfo#305
keanji-x wants to merge 2 commits intomainfrom
feat/add-epoch-block-info

Conversation

@keanji-x
Copy link
Copy Markdown
Contributor

Summary

Update gravity-api-types dependency to track the feat/add-epoch-block-info branch of gravity-aptos, which adds EpochBlockInfo to BlockInfo.

Related PRs

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant