Skip to content
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

Robust packet size calculations and garbage tests #71

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Oct 2, 2024

  • Add a packet size calculator mainly in support of decoy packet allocations in the handshake, but useful in other spots as well.
  • Split the 2 failures for garbage bytes.

@nyonson nyonson marked this pull request as ready for review October 3, 2024 16:30
@nyonson nyonson changed the title Packet size calculations Packet size calculations and garbage tests Oct 3, 2024
@nyonson nyonson force-pushed the decoy-calc branch 6 times, most recently from 5c8779a to 0cea5d2 Compare October 7, 2024 20:27
@nyonson nyonson requested a review from rustaceanrob October 7, 2024 20:29
protocol/src/lib.rs Outdated Show resolved Hide resolved
@nyonson nyonson force-pushed the decoy-calc branch 5 times, most recently from 18b4cef to de4a25e Compare October 17, 2024 16:53
@nyonson nyonson changed the title Packet size calculations and garbage tests Robust packet size calculations and garbage tests Oct 17, 2024
@nyonson nyonson requested a review from rustaceanrob October 17, 2024 19:43
@rustaceanrob
Copy link
Collaborator

Needs rebase, otherwise looks good

@rustaceanrob
Copy link
Collaborator

ACK 75e49b5

@rustaceanrob rustaceanrob merged commit b7de828 into rust-bitcoin:main Oct 18, 2024
7 checks passed
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.

2 participants