Skip to content

feat: Implement simple core msg facility#29

Merged
georgi-l95 merged 1 commit intomainfrom
16-define-core-event-structs
Jun 13, 2025
Merged

feat: Implement simple core msg facility#29
georgi-l95 merged 1 commit intomainfrom
16-define-core-event-structs

Conversation

@georgi-l95
Copy link
Copy Markdown
Contributor

@georgi-l95 georgi-l95 commented Jun 13, 2025

Description

This PR implements the core plugin system for Rock Node, adding three essential plugins (Publish, Verifier, and Persistence) along with the necessary event handling infrastructure. The changes establish a robust event-driven architecture using the "Claim Check" pattern for efficient data handling between plugins.

Related Issues

Changes

  • [Core]: Added event types and BlockDataCache for plugin communication
  • [Core]: Enhanced AppContext with event channels and cache management
  • [Plugin System]: Implemented three core plugins:
    • PublishPlugin: Simulates block production and implements the Claim Check pattern
    • VerifierPlugin: Processes received blocks and verifies their contents
    • PersistencePlugin: Handles verified blocks and manages data persistence
  • [Dependencies]: Added new dependencies:
    • dashmap for concurrent cache management
    • uuid for generating unique cache keys
    • Additional tokio features for async operations

Reviewer Checklist

  • The code follows the project's coding standards.
  • New and existing unit tests pass locally with my changes.
  • I have added necessary documentation (if applicable).
  • I have confirmed that this change does not introduce any new security vulnerabilities.

Signed-off-by: georgi-l95 <glazarov95@gmail.com>
@georgi-l95 georgi-l95 added this to the 0.1.0 milestone Jun 13, 2025
@georgi-l95 georgi-l95 self-assigned this Jun 13, 2025
@georgi-l95 georgi-l95 added area: core Related to core application logic, startup, or configuration. facility: core-messaging Related to the internal LMAX-style message bus. labels Jun 13, 2025
@georgi-l95 georgi-l95 linked an issue Jun 13, 2025 that may be closed by this pull request
4 tasks
@georgi-l95 georgi-l95 merged commit 447b26d into main Jun 13, 2025
@georgi-l95 georgi-l95 deleted the 16-define-core-event-structs branch June 13, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Related to core application logic, startup, or configuration. facility: core-messaging Related to the internal LMAX-style message bus.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Messaging Facility into AppContext Define Core Event Structs

1 participant