20 Feb
2022
20 Feb
'22
6:15 a.m.
i made a source file that makes peer objects. some of the peer objects threw an exception, maybe they need coin-specific code, dunno. it just skips those. next, connection. import electrumx coin_peers = { coin.NAME: coin.PEERS for coin in electrumx.lib.coins.util.subclasses(electrumx.lib.coins.Coin) if len(coin.PEERS) > 0 } for name, peers in coin_peers.items(): try: for peer in peers: peer = electrumx.lib.peer.Peer.from_real_name(peer, '') print(name, peer.real_name()) except: continue