From: Roland Häder Date: Tue, 23 May 2023 07:10:42 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc569a6b639727fb19e657f47f260cc00e217c16;p=fba.git Continued: - added get_peers_url column - flush any pending data after get_peers() was invoked - blacklisted already added instances should be removed (WIP) --- diff --git a/blocks_empty.db b/blocks_empty.db index dea0936..bd2bd6a 100644 Binary files a/blocks_empty.db and b/blocks_empty.db differ diff --git a/fetch_instances.py b/fetch_instances.py index 41d1d77..9aab60c 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -20,6 +20,9 @@ def fetch_instances(domain: str, origin: str): if (peerlist is None): print("ERROR: Cannot fetch peers:", domain) return + elif domain in fba.nodeinfos["get_peers_url"]: + # NOISY-DEBUG: print(f"DEBUG: domain='{domain}' has pending nodeinfo data, flushing ...") + fba.update_nodeinfos(domain) print(f"INFO: Checking {len(peerlist)} instances from {domain} ...") for instance in peerlist: @@ -63,7 +66,7 @@ for row in fba.cursor.fetchall(): domain = row[0] # NOISY-DEBUG: print("DEBUG: domain:", domain) if fba.is_blacklisted(domain): - # NOISY-DEBUG: print("DEBUG: domain is blacklisted:", domain) + print("WARNING: domain is blacklisted:", domain) continue print("INFO: Fetching instances for instance:", domain)