mirror of
https://github.com/lndk-org/lndk.git
synced 2026-08-19 13:17:54 +02:00
Two test-harness-only changes (no production code):
1. get_lnd_args: drop the legacy onion-transport flags. LND v0.21 handles
type 513 natively and advertises the onion message feature bit (39) by
default, so --protocol.custom-message=513 is a no-op and, critically,
--protocol.custom-init=39 / --protocol.custom-nodeann=39 make 0.21 fail
to start ("feature bit 39 already set", feature/manager.go).
2. wait_for_lnd_payment_completion: scan all invoices for a settled one
instead of only checking invoices[0]. A single offer can legitimately
yield multiple invoices (the payer may send several invoice_requests,
each answered with its own invoice); only one is paid, so the old
invoices[0] check could inspect an unpaid invoice and spuriously time
out even though the payment settled.
Verified against LND v0.21.0-beta with the native transport:
- test_lndk_pay_offer (+ _concurrently/_error/_with_retry): 4 passed
- test_receive_payment_from_offer (+ _with_multiple_blinded_paths): 2 passed
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| common | ||
| integration_tests.rs | ||