ziggie
50d6864137
itest: adopt itests for the new behavior
...
Now outgoing dust-htlcs are canceled back before the commitment
is confirmed onchain.
2024-11-07 22:40:53 +01:00
Oliver Gugger
22c3cc51ed
Merge pull request #9223 from starius/close-to-external-p2tr
...
lnwallet: fix closechannel for P2TR external addr
2024-10-30 14:10:21 +01:00
yyforyongyu
785e058b77
itest: fix flake in testPaymentFailureReasonCanceled
...
Fix the case,
```
--- FAIL: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled (20.86s)
harness.go:2113:
Error Trace: /home/runner/work/lnd/lnd/lntest/harness.go:2113
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1183
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1138
/home/runner/work/lnd/lnd/lntest/harness.go:396
/home/runner/work/lnd/lnd/itest/lnd_test.go:139
Error: err from HTLC interceptor stream
Test: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled
Messages: received err from HTLC interceptor stream: rpc error: code = Unknown desc = interceptor already exists
```
2024-10-29 15:32:17 +08:00
Boris Nagaev
4b87072514
itest: coop_close_with_external_delivery with p2tr
...
Customize the itest with the type of external delivery address. Test with P2TR
address type in addition to P2WKPH.
2024-10-28 11:10:41 -03:00
yyforyongyu
ed3cb26188
itest+lntest: stop using pointer to chainhash.Hash
...
This commit fixes the methods used in `lntest` so they stop using
pointers to chainhash.
2024-10-17 07:14:51 +08:00
Boris Nagaev
eda06b19c6
itest: test channel.backup changes upon shutdown
2024-10-14 09:44:32 -03:00
Boris Nagaev
ef8535356b
itest/lnd_channel_backup_test: fix typos
2024-10-14 09:44:32 -03:00
ffranr
9a972e1b0c
itest: add basic invoice HTLC modifier integration test
...
This commit introduces a basic integration test for the invoice
HTLC modifier. The test covers scenarios where an invoice is settled with a
payment that is less than the invoice amount, facilitated by the invoice
HTLC modifier.
2024-09-19 09:21:38 +02:00
Olaoluwa Osuntokun
bed4562584
lnwallet: for PsbtIntent return the internal key in the POutput
...
We also add a new assertion to the itests to ensure the field is being properly set.
2024-09-18 10:25:41 +02:00
George Tsagkarelis
427d41dc1e
itest: add interceptor and first hop data tests
2024-09-05 18:00:53 +02:00
ffranr
ccea257c92
itest: add itest for field modification HTLC interception response
...
Implement an integration test where an HTLC is intercepted and the
interception response modifies fields in the resultant p2p message.
2024-09-05 11:18:16 +02:00
George Tsagkarelis
705e567357
itest: add dynamic scid alias routing test
2024-09-05 10:29:42 +02:00
Andras Banki-Horvath
c8de7a1699
channeldb: filter AMP state to relevant set IDs
...
When fetching an AMP invoice we sometimes filter HTLCs to selected set
IDs, however we always kept the full AMP state which is irrelevant as it
contains state for all AMP payments. This was a side effect of
UpdateInvoice needing to serialize the whole invoice when storing after
an update but it is an unwanted "feature" as users will need to filter
to relevant set when listing an AMP payment or subsribing to an update.
2024-09-03 19:40:46 +02:00
Alex Akselrod
e3a939aa0d
itest: check that AMP subinvoices are correctly updated w/nativesql
2024-09-03 19:40:46 +02:00
Oliver Gugger
54eeb0e792
Merge pull request #9045 from ziggie1984/fix-blinded-payment-tc
...
fix blinded path itest.
2024-08-29 04:51:20 -06:00
ziggie
64fb4cb4ac
itest: fix blinded path itest.
2024-08-29 09:50:46 +02:00
Olaoluwa Osuntokun
2c56b3120a
multi: add new tapscript root option to GenTaprootFundingScript
...
This'll allow us to create a funding output that uses musig2, but uses a tapscript tweak rather than a normal BIP 86 tweak.
2024-08-28 11:52:31 +02:00
Elle Mouton
b0852a22fd
lnwallet+itest: fix PaymentDescriptor creation for blinded path htlc
...
This commit fixes the instantiation of the BlindingPoint member of
PaymentDescriptor during the conversion from persisted LogUpdates.
Previously, the blinding point was not set correctly. The test from the
previous commit is also updated to now assert that this behaviour is now
correct.
2024-08-27 18:18:15 +02:00
Elle Mouton
9ac8e673b4
itest: demonstrate UpdateAddHTLC reloading bug
...
This commit adds a new route blinding itest that demonstrates that the
reloading and re-forwarding of an UpdateAddHTLC message on restart
currently is done incorrectly for a blinded path payment. This is due to
the fact that the blinding point member is not currently set correctly.
This is fixed in the next commit which will also change the test to
assert that the behaviour is now correct.
2024-08-27 18:18:10 +02:00
Olaoluwa Osuntokun
cc9e2b783e
Merge pull request #8961 from yyforyongyu/fix-leaseoutput
...
Improve the performace of `LeaseOutput`
2024-08-21 16:31:26 -07:00
Oliver Gugger
e99e6662cf
multi: update linter, fix new issues
2024-08-20 19:14:44 +02:00
ziggie
2d04813dc3
itest: Add itest for bumpclosefeerate rpc.
...
Add an itest which will bump the close fee rate of an anchor
channel which is force closed without having any HTLCs at stake.
2024-08-09 19:41:27 +02:00
ziggie
75f6622ccf
itest: remove unused LEGACY channel code.
...
Legacy Channel types are not tested anymore via the multi-hop
test harness, therefore we can remove unused code.
2024-08-09 18:54:57 +02:00
yyforyongyu
8259e0fb5f
itest: remove redundant call to ht.WaitForBlockchainSync
...
This check has already been done when mining blocks.
2024-08-09 22:01:57 +08:00
Elle Mouton
5e84ba92af
multi: add IsBlinded to lnrpc.Invoice for nicer UX
...
The BlindedPathConfig struct is nice for invoice creation but when we
use the Invoice message for viewing an invoice, it would be nicer to see
an "is_blinded" field.
2024-08-08 16:46:01 +02:00
Olaoluwa Osuntokun
459ee9b245
Merge pull request #8976 from ellemouton/rb-follow-ups
...
route blinding: follow ups
2024-08-07 17:54:31 -07:00
Yong
a449a5d132
Merge pull request #8174 from yyforyongyu/fix-inflight-payments
...
routing: fix stuck inflight payments
2024-08-07 23:23:27 +08:00
Elle Mouton
697f514d09
blindedpath: log chosen blinded paths
...
In this commit, we log selected blinded paths.
2024-08-07 17:03:12 +02:00
Elle Mouton
3de6c5415a
multi: let blinded path invoice options be set per addinvoice call
...
Extend the configurability of blinded paths in invoices by adding the
ability to change the global config options on a per-RPC basis.
2024-08-07 17:02:55 +02:00
yyforyongyu
d28d5d7a47
itest: add testSendToRouteFailHTLCTimeout
to check SendToRouteV2
2024-08-07 22:17:58 +08:00
yyforyongyu
941716d60e
lntest+itest: add new test testPaymentHTLCTimeout
...
This commit adds a new test case to validate that when an HTLC has timed
out, the corresponding payment is marked as failed.
2024-08-07 22:17:58 +08:00
yyforyongyu
e542351149
itest: add testSendSelectedCoins
to check selected utxos
2024-08-07 20:42:58 +08:00
yyforyongyu
0041426e7e
itest+lntest: return the error from SendCoinsAssertErr
...
Also rename the send all coins test for clarity.
2024-08-07 20:42:28 +08:00
Olaoluwa Osuntokun
c46b1a467a
Merge pull request #8836 from hieblmi/payment-failure-reason-cancel
...
routing: add payment failure reason `FailureReasonCancel`
2024-08-01 16:52:06 -07:00
Andras Banki-Horvath
8e49eb652d
itest: add itest covering the leader healthcheck
2024-08-01 19:04:10 +02:00
Slyghtning
0273eac4b2
itest: payment failure reason canceled
2024-08-01 10:25:22 +02:00
Slyghtning
653226d29c
itest: format and typo fixes
2024-08-01 10:24:08 +02:00
Olaoluwa Osuntokun
04dde98edc
Merge pull request #8764 from ellemouton/rb-send-via-multi-path
...
[3/4] Route Blinding: send MPP over multiple blinded paths
2024-07-31 19:21:49 -07:00
Oliver Gugger
ac4ef28926
Merge pull request #8824 from Crypt-iQ/precise_dust_limit
...
multi: include commitment fees in dust calculation
2024-07-31 03:13:31 -06:00
Elle Mouton
e416501802
itest: test sending MP payment over multiple blinded paths
2024-07-31 09:36:06 +02:00
ziggie
cac5b32d88
itest: adapt itest for the new anchor behavior.
...
Now we also register anchors when no HTLCs are at stake.
2024-07-30 20:31:29 +02:00
bitromortac
b0f0715813
routing: fix fee limit condition
...
When iterating edges, pathfinding checks early whether using an edge
would violate the requested total fee limit for a route. This check is
done on the net amount (an amount the inbound fee is calculated with).
However, a possible next hop's fee discount leads to a reduction in fees
and as such using the net amount leads to assuming a higher cumulative
fee than the route really has, excluding the path erroneously. We
perform the fee limit check on the amount to send, which includes both
inbound and outbound fees. This should be possible as the first hop's
outbound fee is zero and therefore doesn't have to be checked in the
end.
2024-07-30 08:53:09 +02:00
bitromortac
557b33733c
itest: add test for failing send after queryroutes
2024-07-30 08:52:50 +02:00
Olaoluwa Osuntokun
9decf80a68
Merge pull request #8735 from ellemouton/rb-receives
...
[2/4] Route Blinding Receives: Receive and send to a single blinded path in an invoice.
2024-07-29 19:00:06 -07:00
Eugene Siegel
c1138af4ab
itest: modify async_bidirectional_payments itest to pass
2024-07-29 14:13:22 -04:00
ziggie
d0a7765c68
rpcserver: include fee calc. for psbt flow.
...
Include the fee calculaltion for the psbt flow. Moreover include
fee rate testing in the itest environment.
2024-07-26 10:48:00 +02:00
Elle Mouton
398623bde5
blindedpath: move blinded path logic to own pkg
2024-07-26 09:54:59 +02:00
Elle Mouton
c62a9c235e
itest: test blinded paths over private channels
2024-07-26 09:54:38 +02:00
Elle Mouton
66765de413
itest: add route blinding dummy hops test
...
Add an itest that tests the addition of dummy hops to a blinded path. By
testing that invoices containing such a path can be paid, it also tests
the peeling of dummy hops by the receiver.
2024-07-26 09:54:38 +02:00
Elle Mouton
f0558babf3
multi: send MPP payment to blinded path
...
Make various sender side adjustments so that a sender is able to send an
MP payment to a single blinded path without actually including an MPP
record in the payment.
2024-07-26 09:54:38 +02:00