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

[tmpnet] Add Network.GetNetworkID() to get ID of a running network #3269

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

marun
Copy link
Contributor

@marun marun commented Aug 5, 2024

Why this should be merged

As per @aaronbuchwald, having Network.NetworkID return zero for a running network is unexpected behavior.

How this works

Add a new helper function GetNetworkID that tries to return the network ID defined in the genesis before returning Network.NetworkID.

How this was tested

CI

As per @aaronbuchwald, having Network.NetworkID return zero for a
running network is unexpected behavior.
@marun marun added the testing This primarily focuses on testing label Aug 5, 2024
@StephenButtolph StephenButtolph added this to the v1.11.11 milestone Aug 5, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 5, 2024
Merged via the queue into master with commit 58a1aa5 Aug 5, 2024
21 checks passed
@StephenButtolph StephenButtolph deleted the tmpnet-getnetworkid branch August 5, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants