Skip to content

Commit 0086d3d

Browse files
remove debug
1 parent 78bd542 commit 0086d3d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

internal_filesystem/lib/queue.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class Queue:
77
def __init__(self, maxsize=0):
88
self._queue = []
99
self.maxsize = maxsize # 0 means unlimited
10-
#self.maxsize = 4 # limit to avoid stack overflow
1110
self._lock = _thread.allocate_lock() if _thread else None
1211

1312
def put(self, item):
@@ -26,12 +25,10 @@ def get(self):
2625
with self._lock:
2726
if not self._queue:
2827
raise RuntimeError("Queue is empty")
29-
print("queue not empty, returning one object!!!")
3028
return self._queue.pop(0)
3129
else:
3230
if not self._queue:
3331
raise RuntimeError("Queue is empty")
34-
print("queue not empty, returning one object!!!")
3532
return self._queue.pop(0)
3633

3734
def qsize(self):

internal_filesystem/lib/secp256k1_compat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,12 @@ def secp256k1_schnorrsig_sign_custom(self, ctx, sig64, msg, msg_len, keypair, au
267267
return 0
268268

269269
def secp256k1_schnorrsig_verify(self, ctx, schnorr_sig, msg, msg_len, xonly_pubkey):
270-
print("compat.py secp256k1_schnorrsig_verify 1")
271270
try:
272-
print("compat.py secp256k1_schnorrsig_verify 2")
273271
if isinstance(xonly_pubkey, FFI.CData):
274272
xonly_pubkey = xonly_pubkey._data
275-
print("compat.py secp256k1_schnorrsig_verify 3")
276273
return usecp256k1.schnorrsig_verify(schnorr_sig, msg, xonly_pubkey)
277274
except (ValueError, AttributeError):
278-
print("compat.py secp256k1_schnorrsig_verify error")
275+
print("WARNING: secp256k1_compat.py secp256k1_schnorrsig_verify error, returning 0")
279276
return 0
280277

281278
def secp256k1_tagged_sha256(self, ctx, hash32, tag, tag_len, msg, msg_len):

internal_filesystem/lib/websocket_nostr_receive.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
#timestamp = round(time.time()-50)
1414
#timestamp = round(time.time()) # going for zero events to check memory use
1515

16+
timetogoback = 100
17+
1618
import sys
1719
if sys.platform == "esp32":
1820
# on esp32, it needs this correction:
19-
timestamp = time.time() + 946684800 - 1000
21+
timestamp = time.time() + 946684800 - timetogoback
2022
else:
21-
timestamp = round(time.time()-1000)
23+
timestamp = round(time.time()-timetogoback)
2224
#timestamp = round(time.time()-1000)
2325
#timestamp = round(time.time()-5000)
2426

0 commit comments

Comments
 (0)