[crazy][crazy] finding a few cert prints of electrum nodes for different currencies

Undiscussed Horrific Abuse, One Victim of Many gmkarl at gmail.com
Sat Feb 19 22:15:01 PST 2022


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


More information about the cypherpunks mailing list