Exemple #1
0
async def get_node_info(request):
    client = PubKeyClient()
    data = client.fetch_peers()
    return {'is_synced': True, 'peer_count': len(data['data'])}
Exemple #2
0
async def fetch_peers(request):
    client = PubKeyClient()
    return client.fetch_peers()
Exemple #3
0
def get():
    client = PubKeyClient()
    data = client.fetch_peers()
    return {'is_synced': True, 'peer_count': len(data['data'])}