nervosnetwork / neuron

Neuron: Nervos CKB Wallet
https://www.nervos.org
MIT License
186 stars 82 forks source link

Could NOT specify network information manually. #3098

Closed yangby-cryptape closed 5 months ago

yangby-cryptape commented 5 months ago

Topic Type

User Experience

Detail of the issue

When I added a new network, Neuron never asked me for the network information: mainnet or testnet, full node or light client.

Neuron just set the network information as it imagined.

bundled-ckb.log

No response

bundled-ckb-light-mainnet.log

No response

main.log

No response

status.log

No response

Keith-CY commented 5 months ago

Self-hosted Light client is not allowed to be connected to Neuron as mentioned at https://github.com/Magickbase/neuron-public-issues/issues/90#issuecomment-1377030781

It's not recommended to allow users to set the entrypoint of a light client freely because light client and full node are based on different security assumptions.

We could make it clear in the dialog cc @Danie0918


Chain type of a full node is detected via its RPC response https://github.com/nervosnetwork/ckb/tree/develop/rpc#stats-get_blockchain_info, chain: ckb for mainnet and chain: ckb_testnet for testnet. Every time the endpoint is connected to, the chain info will be refreshed.

yangby-cryptape commented 5 months ago

OK, I see.