diff --git a/internal_filesystem/lib/queue.py b/internal_filesystem/lib/queue.py index 9b548f2a..88ba52dc 100644 --- a/internal_filesystem/lib/queue.py +++ b/internal_filesystem/lib/queue.py @@ -7,7 +7,6 @@ class Queue: def __init__(self, maxsize=0): self._queue = [] self.maxsize = maxsize # 0 means unlimited - #self.maxsize = 4 # limit to avoid stack overflow self._lock = _thread.allocate_lock() if _thread else None def put(self, item): @@ -26,12 +25,10 @@ class Queue: with self._lock: if not self._queue: raise RuntimeError("Queue is empty") - print("queue not empty, returning one object!!!") return self._queue.pop(0) else: if not self._queue: raise RuntimeError("Queue is empty") - print("queue not empty, returning one object!!!") return self._queue.pop(0) def qsize(self): diff --git a/internal_filesystem/lib/secp256k1_compat.py b/internal_filesystem/lib/secp256k1_compat.py index bca77bcb..82443e39 100644 --- a/internal_filesystem/lib/secp256k1_compat.py +++ b/internal_filesystem/lib/secp256k1_compat.py @@ -267,15 +267,12 @@ class Lib: return 0 def secp256k1_schnorrsig_verify(self, ctx, schnorr_sig, msg, msg_len, xonly_pubkey): - print("compat.py secp256k1_schnorrsig_verify 1") try: - print("compat.py secp256k1_schnorrsig_verify 2") if isinstance(xonly_pubkey, FFI.CData): xonly_pubkey = xonly_pubkey._data - print("compat.py secp256k1_schnorrsig_verify 3") return usecp256k1.schnorrsig_verify(schnorr_sig, msg, xonly_pubkey) except (ValueError, AttributeError): - print("compat.py secp256k1_schnorrsig_verify error") + print("WARNING: secp256k1_compat.py secp256k1_schnorrsig_verify error, returning 0") return 0 def secp256k1_tagged_sha256(self, ctx, hash32, tag, tag_len, msg, msg_len): diff --git a/internal_filesystem/lib/websocket_nostr_receive.py b/internal_filesystem/lib/websocket_nostr_receive.py index 409294ce..8f931d82 100644 --- a/internal_filesystem/lib/websocket_nostr_receive.py +++ b/internal_filesystem/lib/websocket_nostr_receive.py @@ -13,12 +13,14 @@ from nostr.message_type import ClientMessageType #timestamp = round(time.time()-50) #timestamp = round(time.time()) # going for zero events to check memory use +timetogoback = 100 + import sys if sys.platform == "esp32": # on esp32, it needs this correction: - timestamp = time.time() + 946684800 - 1000 + timestamp = time.time() + 946684800 - timetogoback else: - timestamp = round(time.time()-1000) + timestamp = round(time.time()-timetogoback) #timestamp = round(time.time()-1000) #timestamp = round(time.time()-5000)