Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
106 stars 28 forks source link

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

Closed cdecker closed 2 months ago

cdecker commented 2 months ago

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