-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: Adapt switch internal network type, and notify the user network type is not running external. #2921
Conversation
… type is not running external.
/package |
The logic of informing users when an external node is connected while the internal network is selected is too complex. It can be done by
And as mentioned at #2921 (comment)
By this, no codes should be changed in the backend |
So, some networks will be hidden? When the user chooses the mainnet, the testnet network will be hidden. Then I can remove the remote API |
I think I can send the |
Similar to being hidden In the case of the screenshot,
Sure, there's no need for one more API because |
My bad, the field works is So the targeted status is |
That sounds good, the targeted status should be |
I have tried that, but It seems there are some differences. When we switch the network ID, we should verify and notify the users when an external node is running. But when we switch the internal network type, it's unnecessary and just starts with an internal node. |
I didn't get the point. There are two independent processes.
They are 2 different logic happening before and after the node is connected, how will they be coupled. Maybe you're mentioning that |
When the user starts the mainnet with another port, currently, if they want to switch to the mainnet, I guess we should not check whether there exists an external node and start the testnet not with the current port. So we should also provide an API to switch the network type and keep the mainnet and testnet remote the same. I guess they have the same complex with only switch network ID and use |
/package |
/package |
We had a discussion on meeting and there's no disagreement now |
/package |
Co-authored-by: 严国宇 <841185308@qq.com>
feat: Adapt switch internal network type, and notify the user network…
/package |
packages/neuron-wallet/src/block-sync-renderer/sync/light-connector.ts
Outdated
Show resolved
Hide resolved
/package |
/package |
1. Remove save full node testnet data dir. 2. Fix the dep output data's transform function.
/package |
This comment was marked as outdated.
This comment was marked as outdated.
/package 0fa2da8 |
/package |
Refer to Magickbase/neuron-public-issues#284.
switch-network.mov