samotari / paynoway

A mobile app for testing payment systems against double-spend attacks.
GNU General Public License v3.0
36 stars 8 forks source link

Query, cache list of peers (from connected Electrum server) #3

Closed chill117 closed 5 years ago

chill117 commented 5 years ago

There is currently a list of hard-coded peers for each network (bitcoin, bitcoin testnet, litecoin, etc). This should be used as a starting point to query and store a larger list of known peers (from the Electrum server network).

See: https://github.com/samotari/pay-no-way/blob/a354b999791b1e87c76b6388fefc6a251c374e08/src/js/config.js#L38-L43

chill117 commented 5 years ago

Done - now fetching peers from connected electrum server then caching the result. The next time the app is loaded the cached list of known (good) peers is used.