J’ai l’impression que la liste peering rpc ne se propage pas correctement sur le réseau gtest.
Voyez par vous même:
for node in "https://gt.elo.tf" "https://gtest.cgeek.fr" "https://gt.p2p.legal/ws" "https://gtest.coinduf.eu"; do echo "=== Découverte depuis $node ==="; curl -s -m 10 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"duniter_peerings","params":[],"id":1}' "$node" | python3 -c "
import sys,json
try:
data=json.load(sys.stdin)
peerings=data.get('result',{}).get('peerings',[])
rpc_endpoints=[]
squid_endpoints=[]
for peer in peerings:
for endpoint in peer.get('endpoints', []):
if endpoint.get('protocol') == 'rpc':
rpc_endpoints.append(endpoint.get('address'))
elif endpoint.get('protocol') == 'squid':
squid_endpoints.append(endpoint.get('address'))
print(f'RPC endpoints ({len(rpc_endpoints)}): {rpc_endpoints}')
print(f'Squid endpoints ({len(squid_endpoints)}): {squid_endpoints}')
print()
except Exception as e:
print(f'Error: {e}')
print()
"; done
→
=== Découverte depuis https://gt.elo.tf ===
RPC endpoints (4): ['wss://gtest.1000i100.fr/', 'wss://gtest.cgeek.fr', 'wss://gtest.cgeek.fr', 'wss://gt.p2p.legal/ws']
Squid endpoints (1): ['https://gt-squid.axiom-team.fr']
=== Découverte depuis https://gtest.cgeek.fr ===
RPC endpoints (1): ['wss://gtest.cgeek.fr']
Squid endpoints (0): []
=== Découverte depuis https://gt.p2p.legal/ws ===
RPC endpoints (1): ['wss://gt.p2p.legal/ws']
Squid endpoints (1): ['https://gt-squid.axiom-team.fr']
=== Découverte depuis https://gtest.coinduf.eu ===
RPC endpoints (1): ['wss://gtest.coinduf.eu/']
Squid endpoints (1): ['https://squid.gtest.coinduf.eu/v1/graphql']