-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: create importer online component #1541
Conversation
PR Reviewer Guide 🔍(Review updated until commit 9d121b8)
|
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.
I HIGHLY sugest removing ENTIRELY the leader/follower logic so we can only have a miner/importer logic
/describe |
PR Description updated to latest commit (02aa0cc) |
…atus into importer-component
/describe |
PR Description updated to latest commit (b8bf98f) |
Approved after review and new considerations
This reverts commit 64daad0.
PR Type
Enhancement, Tests
Description
Changes walkthrough 📝
11 files
mod.rs
Introduce Raft consensus module with leader election and peer
discovery
src/eth/consensus/raft/mod.rs
functionalities.
roles.
mod.rs
Refactor consensus module to include Raft and SimpleConsensus
src/eth/consensus/mod.rs
importer.rs
Add Importer module for syncing blocks with external RPC
src/eth/importer/importer.rs
config.rs
Update configuration to support leader and follower modes
src/config.rs
propagation.rs
Update propagation logic for Raft consensus
src/eth/consensus/raft/propagation.rs
log_entry.rs
Add LogEntry structures for Raft log entries
src/eth/consensus/raft/log_entry.rs
server.rs
Implement Raft server for handling append entries and votes
src/eth/consensus/raft/server.rs
main.rs
Update main function to initialize Raft and Importer
src/main.rs
mod.rs
Add SimpleConsensus module for basic consensus operations
src/eth/consensus/simple_consensus/mod.rs
importer_config.rs
Add ImporterConfig for configuring importer settings
src/eth/importer/importer_config.rs
rpc_server.rs
Update RPC server to use dynamic Consensus trait
src/eth/rpc/rpc_server.rs
3 files
factories.rs
Add factory functions for Raft consensus tests
src/eth/consensus/raft/tests/factories.rs
importer.test.ts
Update integration tests for Importer functionality
e2e/cloudwalk-contracts/integration/test/importer.test.ts
e2e-importer.yml
Rename and update E2E Importer workflow
.github/workflows/e2e-importer.yml
1 files
justfile
...
justfile
...