Skip to content

Conversation

rustaceanrob
Copy link
Collaborator

@rustaceanrob rustaceanrob commented Jul 24, 2025

Makes use of the new V2NetworkMessage apart of the new p2p types crate.

This temporarily removes no_std because p2p is std, but an easy fix would be internal conversions for Network -> [u8; 4] when dealing with magic, which is only one place.

Removes the serde module which is a nice win.

Proposing that we add this to a "develop" branch

@rustaceanrob rustaceanrob force-pushed the rust-bitcoin-dev-7-24 branch 2 times, most recently from 02506c7 to 5d290c5 Compare July 24, 2025 14:13
@rustaceanrob
Copy link
Collaborator Author

Given an ACK I would just push this to the upstream under a new branch

@@ -20,7 +20,9 @@ std = ["bitcoin/std", "bitcoin_hashes/std", "chacha20-poly1305/std", "rand/std",
# depending on which version of tokio is selected by the caller.
tokio = { version = "1", default-features = false, optional = true, features = ["io-util"] }
rand = { version = "0.8.0", default-features = false }
bitcoin = { version = "0.32.4", default-features = false }
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = false, rev = "bd450d7be31bb50b6bc33f2417bfb5f0b00191b0" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

One thing we could look into (not that it saves that many lines) is keeping these versions in the workspace root and have the crates pull from that source of truth like that quinn workspace does. Might just be nice with this long hashes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will give that a look. Sounds like good practice

@nyonson
Copy link
Collaborator

nyonson commented Jul 24, 2025

cACK

I am curious about the longterm std/no_std goal for the p2p, but I'll poke around there separately.

@rustaceanrob rustaceanrob force-pushed the rust-bitcoin-dev-7-24 branch from 5d290c5 to 7fe268e Compare August 13, 2025 11:24
@rustaceanrob rustaceanrob mentioned this pull request Aug 13, 2025
4 tasks
@rustaceanrob rustaceanrob force-pushed the rust-bitcoin-dev-7-24 branch from 7fe268e to be8b4ed Compare August 13, 2025 17:34
@rustaceanrob
Copy link
Collaborator Author

After having a look at the dependency tree and iterating a few times, looks like we will probably remove the dependency entirely. I'll tackle this in a separate PR

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