bithyve / bitcointribe

Bitcoin Tribe. A simple bitcoin wallet made to be used with Friends and Family. Lightning. Gifts and more.
https://bitcointribe.app/
MIT License
124 stars 62 forks source link

Check if own node is testnet or mainnet #2385

Open Arpanjainson opened 3 years ago

Arpanjainson commented 3 years ago

App allows setting http://35.178.186.16 port 80 which is a testnet wrapper as own node in staging app. A check should be in place to verify it is main-net node.

Parsh commented 3 years ago

We would need an additional endpoint on the wrapper which could relay blockchain-info in order to identify the network. I was not able to find any network information in the current set of Esplora endpoints. cc @Varunram

Varunram commented 3 years ago

Will create a new endpoint and PR on Friday

Varunram commented 3 years ago

https://github.com/bithyve/bithyve-wrapper/pull/30