feat: remove cometbft dependency to GenesisDoc#2091
feat: remove cometbft dependency to GenesisDoc#2091tac0turtle merged 31 commits intofeature/exec_apifrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis update introduces comprehensive documentation for the Block Manager and refactors the genesis handling throughout the codebase. The changes transition from legacy genesis types (e.g., RollkitGenesis and cmtypes.GenesisDoc) to a new, unified Changes
Sequence Diagram(s)sequenceDiagram
participant BM as Block Manager
participant GS as Genesis Module
participant Exec as Executor
participant DA as DA Network
participant Store as Storage
BM->>GS: Load genesis config (NewGenesis/LoadGenesis)
GS-->>BM: Return genesis data
BM->>Exec: Initialize state using genesis data
BM->>BM: Determine production mode (Normal or Lazy)
BM->>DA: Publish block (with exponential backoff on failure)
DA-->>BM: Acknowledge block publication
BM->>Store: Save block and update state
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/exec_api #2091 +/- ##
====================================================
- Coverage 24.11% 23.17% -0.95%
====================================================
Files 52 54 +2
Lines 8231 8182 -49
====================================================
- Hits 1985 1896 -89
- Misses 6089 6123 +34
- Partials 157 163 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
tac0turtle
left a comment
There was a problem hiding this comment.
Almost there. Not sure if startheight should be start time, using height for time is confusing
| // Genesis represents the genesis state of the blockchain | ||
| type Genesis struct { | ||
| ChainID string `json:"chain_id"` | ||
| GenesisDAStartHeight time.Time `json:"genesis_da_start_height"` // TODO: change to uint64 and remove time.Time, basically we need a mechanism to convert DAHeight to time.Time |
There was a problem hiding this comment.
This should be a uint64 (height) or it should be renamed to DAStartTime
There was a problem hiding this comment.
yeah, this is approved to have some design, as it has some implications this change in order to get the time by DA height. @Manav-Aggarwal will propose something.
There was a problem hiding this comment.
Is a temporary fix
There was a problem hiding this comment.
dont follow, what is this a fix of? the adr says height not time. you will need to poll DA for the height every n seconds to see. can we put height here and open an issue for the polling. no need to do it in this pr
|
Overview
Remove dependendency from cometbft GenesisDoc.
Update Genesis struct to mirror ADR 016
Summary by CodeRabbit
Documentation
Refactor
Tests
Chores