-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Restructure `p2p` package. This commit focuses on restructuring the `p2p` package to improve organization and maintainability. Key updates include: 1. **Package Restructure**: - Renamed `peers.go` to `codec.go`. - Refactored the folder structure: - Moved generated protobuf files to a new `gen` directory. - Grouped related files into subdirectories (`peers`, `sync`, etc.). - Simplified and clarified the organization of the `p2p` package. 2. **Adapter Function Updates**: - Updated adapter functions in multiple files (e.g., `block.go`, `class.go`, `felt.go`, `receipt.go`, `state.go`, and `transaction.go`) to reference the `gen` package instead of `spec`. 3. **Import Statement Updates**: - Updated all import statements to replace `spec` with `gen`. 4. **Makefile Changes**: - Added a new `generate-buf` target to support protobuf generation using the `buf` tool. 5. **Protobuf Tooling**: - Switched from `protoc` to `buf` for managing protobuf files. This restructuring streamlines the `p2p` package, enhancing its readability and modularity while transitioning to the `gen` package for consistency across the codebase.
- Loading branch information
1 parent
28e4512
commit 2653ae9
Showing
49 changed files
with
6,568 additions
and
7,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.