LiskArchive / lisk-ui

🖥️ Lisk user-interface submodule
https://lisk.io/
GNU General Public License v3.0
24 stars 35 forks source link

Indicate which network the client is running on #65

Open karmacoma opened 8 years ago

karmacoma commented 8 years ago

We should indicate which network a client is running on within the UI. This can be done by querying the nethash and comparing to the known mainnet nethash:

https://testnet.lisk.io/api/blocks/getNethash
{"success":true,"nethash":"da3ed6a45429278bac2666961289ca17ad86595d33b31037615d4b8e8f158bba"}

Using this information, we can dynamically provide an indicator in the UI, e.g. testnet vs mainnet and also include the nethash itself.

fix commented 8 years ago

the thing mis we should put the nethash published somewhere, like for instance on lisk.io/nethashes.json with some conventions:

{
mainnet:"da3ed6a45429278bac2666961289ca17ad86595d33b31037615d4b8e8f158bba", 
tesnet:"jfkhsfzudf8s7fs8dfiuzsd7f8sdftzsd8f7d6e8rfw76gduvz", 
devnet:"sjdhfkshdfskldfjhsdfksdhfsdkf"
}