|
|
@ -9,7 +9,7 @@ from flask import Blueprint
|
|
|
|
from urllib.parse import urlparse
|
|
|
|
from urllib.parse import urlparse
|
|
|
|
|
|
|
|
|
|
|
|
from xmrnodes.helpers import determine_crypto, is_onion, is_i2p, make_request
|
|
|
|
from xmrnodes.helpers import determine_crypto, is_onion, is_i2p, make_request
|
|
|
|
from xmrnodes.helpers import retrieve_peers, rw_cache, get_highest_block, get_geoip
|
|
|
|
from xmrnodes.helpers import retrieve_peers, get_highest_block, get_geoip
|
|
|
|
from xmrnodes.models import Node, HealthCheck, Peer
|
|
|
|
from xmrnodes.models import Node, HealthCheck, Peer
|
|
|
|
from xmrnodes import config
|
|
|
|
from xmrnodes import config
|
|
|
|
|
|
|
|
|
|
|
@ -147,8 +147,6 @@ def _get_peers():
|
|
|
|
for peer in peers_to_scan:
|
|
|
|
for peer in peers_to_scan:
|
|
|
|
upsert_peer(peer)
|
|
|
|
upsert_peer(peer)
|
|
|
|
|
|
|
|
|
|
|
|
# rw_cache("map_peers", list(Peer.select().execute()))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bp.cli.command("get_peers")
|
|
|
|
@bp.cli.command("get_peers")
|
|
|
|
def get_peers():
|
|
|
|
def get_peers():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|