lndk/tests
Alex71btc 52fd8a06bc
tests: adapt integration harness for LND v0.21 native onion messages
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>
2026-06-20 20:12:00 +02:00
..
common tests: adapt integration harness for LND v0.21 native onion messages 2026-06-20 20:12:00 +02:00
integration_tests.rs fix: reject offers with offer_amount=0 per BOLT 12 spec 2026-04-14 07:48:12 +02:00