Skip to content

Remove the use of bip324::serde in traffic with V2 wrapper#155

Merged
rustaceanrob merged 1 commit intorust-bitcoin:mainfrom
nyonson:pr-154
Sep 4, 2025
Merged

Remove the use of bip324::serde in traffic with V2 wrapper#155
rustaceanrob merged 1 commit intorust-bitcoin:mainfrom
nyonson:pr-154

Conversation

@nyonson
Copy link
Copy Markdown
Collaborator

@nyonson nyonson commented Sep 4, 2025

Fix #154 with some V2 wrappers.

I am kinda surprised this doesn't cause some dependency issues, but have a working theory. This patch pulls in a completely new bitcoin dependency for two reasons. First off, it has the version v0.33.0-alpha.0 so is a semantic versioning breaking change, but also, the git source vs. crates.io makes it a new dependency as well. I believe this means the types in the crates are incompatible. But it works out because the types being used (e.g. NetworkMessage, V2NetworkMessage) are not crossing the crate boundary between traffic and protocol (good call by us). And Network is re-export by protocol, so also ok there.

To prepare for removing `bitcoin` as a dependency, we can get a jump by
removing the use of `bip324::serde` in the test suite. Understandable if
it is too weird to depend on specific commits in the test suite, but
throwing it up because it is not a horribly complicated change.

Co-authored-by: Nick Johnson <nick@yonson.dev>
@nyonson nyonson requested a review from rustaceanrob September 4, 2025 17:36
@rustaceanrob
Copy link
Copy Markdown
Collaborator

Lol I didn't even think about the actual dependency of the crate.

ACK 9329bb2

@rustaceanrob rustaceanrob merged commit 1808969 into rust-bitcoin:main Sep 4, 2025
8 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