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

Explicitly check for regtest network #2090

Merged
merged 1 commit into from Aug 9, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Explicitly check for regtest network

  • Loading branch information...
benthecarman committed Aug 7, 2019
commit f8d0313a4878cb5a6d52821437fb24af546d5af4
@@ -173,10 +173,14 @@ public Uri GetCurrentBackendUri()
{
_backendUri = new Uri(TestNetBackendUriV3);
}
else // RegTest
else if (Network == Network.RegTest)
{
_backendUri = new Uri(RegTestBackendUriV3);
}
else
{
throw new NotSupportedException($"{nameof(Network)} not supported: {Network}.");
}

return _backendUri;
}
@@ -196,10 +200,14 @@ public Uri GetFallbackBackendUri()
{
_fallbackBackendUri = new Uri(TestNetFallbackBackendUri);
}
else // RegTest
else if (Network == Network.RegTest)
{
_fallbackBackendUri = new Uri(RegTestBackendUriV3);
}
else
{
throw new NotSupportedException($"{nameof(Network)} not supported: {Network}.");
}

return _fallbackBackendUri;
}
@@ -68,10 +68,14 @@ public static BitcoinWitPubKeyAddress GetCoordinatorAddress(Network network)
{
return TestNetCoordinatorAddress;
}
else // else regtest
else if (network == Network.RegTest)
{
return RegTestCoordinatorAddress;
}
else
{
throw new NotSupportedException($"{nameof(network)} not supported: {network}.");
}
}

public const string ChangeOfSpecialLabelStart = "change of (";
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.