debug printing
This commit is contained in:
parent
0cbee4dc6c
commit
54ca4476cc
2 changed files with 10 additions and 0 deletions
5
tasks.py
5
tasks.py
|
|
@ -98,6 +98,11 @@ async def on_invoice_paid(payment: Payment):
|
|||
def send_event(_):
|
||||
ws.send(zap_receipt.to_message())
|
||||
|
||||
from lnbits.core import bolt11
|
||||
|
||||
print(
|
||||
f"Invoice description hash: {bolt11.decode(payment.bolt11).description_hash}"
|
||||
)
|
||||
ws = WebSocketApp(
|
||||
f"ws://localhost:{settings.port}/nostrclient/api/v1/relay",
|
||||
on_open=send_event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue