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

rs: Reorder the network enum to match the bitcoin crate's enumeration #429

Merged
merged 1 commit into from
May 16, 2024

Conversation

cdecker
Copy link
Collaborator

@cdecker cdecker commented May 8, 2024

We were investigating the switch from signet to regtest in the test
environment, and I misidentified the solution as being an ordering, or
numbering issue in the enum. Turns out we were using an altogether
different enum in the first place, and that was causing the
issue. Nevertheless, lining these up the same way should prevent
accidental breakage if we end up using the numeric encoding somewhere.

Fixes #434

Randy808
Randy808 previously approved these changes May 13, 2024
For a second I thought this might be the cause for a mixup between
`signet` and `regtest` but it turned out not to be the case. Anyway it
is likely less confusing for future debuggings if the numeric values
between these enums is the same, even if we don't really use the
rust-bitcoin enum with its numeric value.
@cdecker cdecker force-pushed the 20240508-network-enum branch from 49c0776 to 0cce6de Compare May 15, 2024 16:29
@cdecker cdecker changed the title 20240508 network enum rs: Reorder the network enum to match the bitcoin crate's enumeration May 15, 2024
@cdecker cdecker enabled auto-merge (rebase) May 16, 2024 14:00
@cdecker cdecker requested a review from Randy808 May 16, 2024 14:00
@cdecker cdecker merged commit 93f1482 into main May 16, 2024
19 checks passed
@cdecker cdecker deleted the 20240508-network-enum branch May 16, 2024 14:27
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.

vls-protocol-signer-0.11.0 compilation error
2 participants