019 perf dedup cleanup#8
Merged
timschwartz merged 4 commits intomainfrom Apr 13, 2026
Merged
Conversation
…eanup specifications
…ding RPC dispatch refactor and data model updates
…g refactoring of peer operations and RPC dispatch
- Introduced a dispatch map to handle various RPC requests in RpcServer. - Added handler functions for multiple RPC methods including stream management and peer operations. - Updated the RpcServer header to include necessary includes and new member functions. Enhance logging utilities in utils.hpp - Added lazy log macros for different log levels to improve logging efficiency. - Updated the generate_uuid_v4 function declaration to ensure proper formatting. Improve test helpers for block creation and chain building - Added make_block function to TestHelpers for fast block creation with difficulty 0. - Updated chunk persistence tests to utilize new TestHelpers functions for directory management and block creation. Refactor consensus tests to use TestHelpers for block mining - Replaced inline block mining logic with TestHelpers::mineTestBlock for consistency and readability. - Updated various test cases to utilize the new helper functions for block creation. Refactor sync tests to use TestHelpers for block creation - Replaced inline block mining logic with TestHelpers::mineTestBlock and chain building with TestHelpers::buildValidChain. - Improved readability and maintainability of sync tests. Add serialization tests for packet headers and payloads - Implemented a test case to verify the correctness of packet serialization and deserialization for Block objects.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.