-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
} | ||
|
||
public List<SettingsUrl> GetDefaultIndexerUrls() | ||
{ | ||
return new List<SettingsUrl> | ||
if (currentNetwork.NetworkType == NetworkType.Testnet) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
* Adding support for mainnet * show error if getting test coins failed
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.