Skip to content

⚡️ Process buffered DP when done with one #1162

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

Merged
merged 3 commits into from
May 12, 2025
Merged

Conversation

wraitii
Copy link
Member

@wraitii wraitii commented May 8, 2025

This avoids a situation where we receive several DPS, and by the time the hashing of the second is done we haven't done processing the first. We'd buffer it and just forget about it.

@wraitii wraitii requested a review from Copilot May 8, 2025 09:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the buffered DataProposals processing to ensure that a descendant proposal is processed once its parent has been hashed. Key changes include logging the buffering of a DataProposal, checking for a buffered descendant proposal, and processing that descendant accordingly.

Copy link

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 26.31579% with 14 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/mempool/verify_tx.rs 26.31% 14 Missing ⚠️
Files with missing lines Coverage Δ
crates/hyle-net/src/tcp/p2p_server.rs 72.56% <ø> (+0.17%) ⬆️
src/mempool/verify_tx.rs 53.72% <26.31%> (-1.23%) ⬇️

... and 1 file with indirect coverage changes

@wraitii wraitii force-pushed the process_bufferred branch from 0ba2261 to d7bcafd Compare May 9, 2025 14:31
Base automatically changed from tcp_on_bytes to main May 12, 2025 08:31
wraitii and others added 2 commits May 12, 2025 10:32
This avoids a situation where we receive several DPS, and by the time the hashing of the second is done we haven't done processing the first. We'd buffer it and just forget about it.
@wraitii wraitii force-pushed the process_bufferred branch from d7bcafd to 48cba00 Compare May 12, 2025 08:32
@wraitii wraitii force-pushed the process_bufferred branch from 0aed9ea to 7406af4 Compare May 12, 2025 11:04
@wraitii wraitii merged commit 687dce2 into main May 12, 2025
32 of 33 checks passed
@wraitii wraitii deleted the process_bufferred branch May 12, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants