This commit is contained in:
callebtc 2023-03-22 01:18:17 +01:00
commit b66588d7c9
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ async def api_lnurl_callback(
if nostr: if nostr:
extra["nostr"] = nostr extra["nostr"] = nostr
# print("HASHING THIS") # print("HASHING THIS")
nostr_description = json.dumps(nostr)[1:-1] # remove leading and trailing " nostr_description = nostr # json.dumps(nostr)[1:-1] # json.dumps supposedly makes escaped "-s, remove leading and trailing "
# print(nostr_description) # print(nostr_description)
import hashlib import hashlib

View file

@ -99,7 +99,7 @@ async def on_invoice_paid(payment: Payment):
private_key.sign_event(zap_receipt) private_key.sign_event(zap_receipt)
def send_event(_): def send_event(_):
# logger.debug(f"Sending zap: {zap_receipt.to_message()}") logger.debug(f"Sending zap: {zap_receipt.to_message()}")
ws.send(zap_receipt.to_message()) ws.send(zap_receipt.to_message())
ws.close() ws.close()