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

Function name cosmetics and such #70

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Oct 2, 2024

  • Invert the with_alloc suffix to no_alloc following what will probably be used more. Closes Naming convention on methods #67 .
  • Condensed a few handshake functions for easier organization.
  • Moved some public fields to private on the PacketHandler since I don't believe we want the caller to mess with them.
  • Moved the integration test runner script to a new contrib/ directory for discoverability and following convention in rust-bitcoin.

@nyonson nyonson requested a review from rustaceanrob October 2, 2024 19:02
@@ -450,11 +450,11 @@ impl PacketWriter {
#[derive(Clone)]
pub struct PacketHandler {
/// A unique identifier for the communication session.
pub session_id: [u8; 32],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was thinking it might be easier to have the field just be public, but I don't mind this approach either

@rustaceanrob
Copy link
Collaborator

ACK 380ed5a

@rustaceanrob rustaceanrob merged commit 4f1dee7 into rust-bitcoin:main Oct 2, 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.

Naming convention on methods
2 participants