Skip to content

Commit

Permalink
gltesting: Ensure the Network enum matches the rust-bitcoin one
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cdecker committed May 16, 2024
1 parent 0d1f092 commit 93f1482
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libs/gl-testing/gltesting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ def get_node_version(self):


class Network(Enum):
"""Supported networks."""
"""Supported networks.
Matches the enum in the `bitcoin::Network` rust code.
"""

BITCOIN = 0
TESTNET = 1
REGTEST = 2
SIGNET = 2
REGTEST = 3

0 comments on commit 93f1482

Please sign in to comment.