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

Adding support for mainnet #61

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Adding support for mainnet #61

merged 2 commits into from
Mar 29, 2024

Conversation

dangershony
Copy link
Member

Before this PR is pushed we should create a mainnet Angor key

The logic in going to mainnet or testnet is dependent on the url of the domain.
If it contains "test" or "localhost" the app will default to testnet otherwise mainnet.
However it is possible to force a network in the settings page.

}

public List<SettingsUrl> GetDefaultIndexerUrls()
{
return new List<SettingsUrl>
if (currentNetwork.NetworkType == NetworkType.Testnet)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just replace the subdomain in the URL if the rest stays the same?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may not always be the case, it is just simpler this way.

<div class="mb-3">
<label for="networkSelection">Select Network:</label>
<select class="form-control" id="networkSelection" @bind="selectedNetwork">
<option value="testnet" selected>Testnet</option>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be data driven from the network configuration class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can but I think it is not urgent rn, we will for now just have main/test.

@dangershony dangershony merged commit 3db8d1b into main Mar 29, 2024
3 checks passed
@dangershony dangershony deleted the mainnet branch March 29, 2024 13:55
DavidGershony pushed a commit that referenced this pull request Apr 24, 2024
* Adding support for mainnet

* show error if getting test coins failed
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.

2 participants