daywalker90
ae4e00967d
fix paying of amount-less invoices with a request amount
2026-08-09 18:01:53 +02:00
daywalker90
102de7345d
fix holdinvoice always having 0 deadline
2026-08-09 18:01:53 +02:00
daywalker90
e175198c45
misc: fix log levels, substraction overflow, invoice valid check
2026-08-09 15:56:34 +02:00
daywalker90
b31f42691f
fix unaccepted hold invoices in the accepted handler
...
holdinvoice_accepted_handler waited on the hold plugin track stream and
sent a HoldInvoiceAccepted notification afterwards, without checking the
reason the stream ended. When an invoice was cancelled, the stream just closes and the handler still sent
a spurious accepted notification.
Only send the notification if the stream actually reported the invoice
as accepted.
The hold plugin has no expired state: an invoice that expires without
ever being accepted stays Unpaid and the track stream never ends, so the
handler previously hung forever, holding a task and a gRPC stream open.
Pass the invoice's expiry into the handler and time out the track stream
at that point (capped), so it gives up on expired invoices and never
sends a spurious accepted notification. When re-spawning pending
invoices at startup, derive the expiry from the decoded bolt11.
Add test_hold_invoice_expiry which creates an invoice with a short
expiry and asserts the handler gives up without sending the notification.
2026-08-09 15:39:01 +02:00
daywalker90
c1bb7606cf
reserve budget during in-flight payments, drop lock while paying
2026-08-09 12:29:09 +02:00
daywalker90
408b015d91
improve handling of stale or duplicate events
2026-08-08 17:43:02 +02:00
daywalker90
f5b64586fc
tests: update to nostr sdk 0.45
2026-08-08 15:06:37 +02:00
daywalker90
61c07f6079
refactor, clippy and ruff fixes
2026-08-08 15:06:37 +02:00
daywalker90
6690c9d49d
removed multi_* methods
2026-08-08 15:06:37 +02:00
daywalker90
78ac7cac05
prepare for nostr 0.45
2026-08-08 15:06:37 +02:00
daywalker90
c956338bcd
add support for holdinvoices
2026-08-08 15:06:37 +02:00
daywalker90
c4cbcbe4d2
tests: update python min to 3.10
2026-04-23 00:17:36 +02:00
daywalker90
4fdc9e0265
tests: upgrade dependencies
2026-04-03 10:13:22 +02:00
daywalker90
9763b91d2e
tests: allow for more warn logs
2026-03-02 17:15:37 +01:00
dependabot[bot]
cccc9e38db
Bump the uv group across 1 directory with 2 updates
...
Bumps the uv group with 2 updates in the /tests directory: [flask](https://github.com/pallets/flask ) and [werkzeug](https://github.com/pallets/werkzeug ).
Updates `flask` from 3.1.2 to 3.1.3
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/3.1.2...3.1.3 )
Updates `werkzeug` from 3.1.4 to 3.1.6
- [Release notes](https://github.com/pallets/werkzeug/releases )
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/werkzeug/compare/3.1.4...3.1.6 )
---
updated-dependencies:
- dependency-name: flask
dependency-version: 3.1.3
dependency-type: indirect
dependency-group: uv
- dependency-name: werkzeug
dependency-version: 3.1.6
dependency-type: indirect
dependency-group: uv
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-02 13:21:00 +01:00
dependabot[bot]
fee812eda7
Bump cryptography in /tests in the uv group across 1 directory
...
Bumps the uv group with 1 update in the /tests directory: [cryptography](https://github.com/pyca/cryptography ).
Updates `cryptography` from 46.0.3 to 46.0.5
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/46.0.3...46.0.5 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-version: 46.0.5
dependency-type: indirect
dependency-group: uv
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 12:39:15 +01:00
dependabot[bot]
1da7d6447d
Bump urllib3 in /tests in the uv group across 1 directory
...
Bumps the uv group with 1 update in the /tests directory: [urllib3](https://github.com/urllib3/urllib3 ).
Updates `urllib3` from 2.6.2 to 2.6.3
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.2...2.6.3 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-version: 2.6.3
dependency-type: indirect
dependency-group: uv
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-02-03 21:06:20 +01:00
daywalker90
be81402c99
tests: remove relay terminate delay again
2026-01-22 12:43:34 +01:00
daywalker90
46d8e05b04
tests: force get_unused_port useage and allow unclean shutdown of relay
2026-01-22 12:35:40 +01:00
daywalker90
727f710646
tests: use nostr-rs-relay instead of nostr_relay
2025-12-31 23:56:36 +01:00
daywalker90
7dff9f83e7
tests: move pyproject to tests
2025-12-09 16:23:34 +01:00
daywalker90
3aec0ea517
tests: try to fix address already in use flake
2025-11-10 16:33:51 +01:00
daywalker90
53a3d37f02
refactor capability building
2025-11-09 16:02:15 +01:00
daywalker90
0b302a125f
add notifications to info_event content
2025-11-08 14:57:10 +01:00
daywalker90
c03ae945d6
tests: rename test file to be in line with plugin name
2025-11-06 16:06:01 +01:00
daywalker90
c6194691c0
minor fixes around amount=0 and list_transactions
2025-11-06 16:03:56 +01:00
daywalker90
f6d63920e5
tests: fix by using new Method type for capabilities
2025-11-06 15:12:34 +01:00
daywalker90
9edf9ff69d
upgrade nostr-sdk to 0.44
2025-11-06 12:52:27 +01:00
daywalker90
dd63430145
CI: uncomment early exits
2025-08-19 11:26:00 +02:00
daywalker90
cb253594e5
tests: increase sleep timer for relay startup
2025-08-18 12:30:13 +02:00
daywalker90
675e625dcd
ci: switch to uv in setup.sh
2025-08-18 12:09:45 +02:00
daywalker90
0a9eb7cd82
ci/tests: switch to uv and cleanup github action
2025-08-18 12:03:51 +02:00
daywalker90
ae8817e7a6
tests: upgrade nostr sdk to v0.43
2025-08-05 21:46:44 +02:00
daywalker90
5ec60bc094
tests: allow 1 sec difference in timestamps
2025-06-17 14:09:45 +02:00
daywalker90
97c89858eb
support receive-only NWC announcements
2025-05-04 14:08:10 +02:00
daywalker90
b4ebfaaefd
add nip47-notifications option
2025-04-18 15:14:05 +02:00
daywalker90
5947e28ba9
tests: fix for xpay err msg and labels now existing
2025-04-08 00:06:16 +02:00
daywalker90
a7ff04d162
tests: fix timing flake
2025-04-02 17:48:55 +02:00
daywalker90
2529bb5863
init
2025-04-02 17:38:52 +02:00