Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 276
chore: update specs#2459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
chore: update specs #2459
Changes from all commits
e977a8f144283b04dffbd32fe1d2e910b72ab5c904f2e6ba3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -32,19 +32,26 @@ The [Store] is initialized with `DefaultStore`, an implementation of the [store | ||
| ### blockManager | ||
| The [Block Manager] is responsible for managing the operations related to blocks such as creating and validating blocks. | ||
| The [Block Manager] is responsible for managing block-related operations including: | ||
| - Block production (normal and lazy modes) | ||
| - Header and data submission to DA layer | ||
| - Block retrieval and synchronization | ||
| - State updates and finalization | ||
| It implements a header/data separation architecture where headers and transaction data are handled independently. | ||
| ### dalc | ||
| The [Data Availability Layer Client][dalc] is used to interact with the data availability layer. It is initialized with the DA Layer and DA Config specified in the node configuration. | ||
| ### hExService | ||
| ### hSyncService | ||
| The [Header Sync Service] is used for syncing block headers between nodes over P2P. | ||
| The [Header Sync Service] is used for syncing signed headers between nodes over P2P. It operates independently from data sync to support light clients. | ||
| ### bSyncService | ||
| ### dSyncService | ||
| The [Block Sync Service] is used for syncing blocks between nodes over P2P. | ||
| The [Data Sync Service] is used for syncing transaction data between nodes over P2P. This service is only used by full nodes, not light nodes. | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ## Message Structure/Communication Format | ||
| @@ -78,7 +85,7 @@ See [full node] | ||
| [9] [Header Sync Service][Header Sync Service] | ||
| [10] [Block Sync Service][Block Sync Service] | ||
| [10] [Data Sync Service][Data Sync Service] | ||
| [full node]: https://github.com/rollkit/rollkit/blob/main/node/full.go | ||
| [genesis]: https://github.com/cometbft/cometbft/blob/main/spec/core/genesis.md | ||
| @@ -89,4 +96,4 @@ See [full node] | ||
| [Block Manager]: https://github.com/rollkit/rollkit/blob/main/block/manager.go | ||
| [dalc]: https://github.com/rollkit/rollkit/blob/main/core/da/da.go | ||
| [Header Sync Service]: https://github.com/rollkit/rollkit/blob/main/pkg/sync/sync_service.go | ||
| [Block Sync Service]: https://github.com/rollkit/rollkit/blob/main/pkg/sync/sync_service.go | ||
| [Data Sync Service]: https://github.com/rollkit/rollkit/blob/main/pkg/sync/sync_service.go | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Plural
Signaturescontradicts single-signer modelverify len(c.Signatures) not 0still assumes a slice/array even though the spec now mandates a singleSignaturefield. Besides the plural variable name (c) is undefined in this snippet. Replace the size check with a simplenil / emptycheck onsh.Signature.📝 Committable suggestion
🤖 Prompt for AI Agents