yyforyongyu
653a8ac55e
lntest+itest: add new method AssertChannelInGraph
...
This commit replaces `AssertTopologyChannelOpen` with
`AssertChannelInGraph`, which asserts a given channel edge is found.
`AssertTopologyChannelOpen` only asserts a given edge has been received
via the topology subscription, while we need to make sure the channel is
in the graph before continuing our tests.
2024-11-12 23:55:40 +08:00
yyforyongyu
2905e7b3df
lntest+itest: kill node and wait its process
...
Fix a flake found in `testRPCMiddlewareInterceptor` when running in
macOS.
2024-11-12 23:55:40 +08:00
yyforyongyu
7dd9a17625
lntest+itest: fix testUpdateChanStatus
2024-11-11 20:57:50 +08:00
yyforyongyu
d27ff34b04
lntest+itest: rename AssertNumEdges
to AssertNumActiveEdges
...
To properly reflect what the assertion is.
2024-11-11 20:57:49 +08:00
yyforyongyu
35992e1503
lntest+itest: expore method createSimpleNetwork
...
So it can be used via `ht.CreateSimpleNetwork`.
2024-11-11 20:57:49 +08:00
yyforyongyu
9682aa7a78
itest: fix testZeroConfChannelOpen
and testOptionScidAlias
...
Use a new node instead of standby node to avoid closing the channels in
the end.
2024-11-11 20:54:10 +08:00
Olaoluwa Osuntokun
faa4f24806
Merge pull request #9182 from ziggie1984/fix-feebuffer
...
Deprecate dust-threshold config value
2024-11-07 19:41:38 -08:00
Olaoluwa Osuntokun
3a14382720
Merge pull request #9068 from ziggie1984/cancel-back-dust-htlc
...
Cancel back outgoing dust htlcs before commitment is confirmed.
2024-11-07 19:40:33 -08:00
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
ziggie
7b2da94750
multi: deprecate dust-treshold config value
...
Replace ambigious config value "dust-treshold" with a more clear
"channel-max-fee-exposure" exposure value. The old value is
deprecated and will be removed in the near future.
2024-11-06 18:16:06 +01:00
Oliver Gugger
26216f749a
itest: add tests for new backup responses
2024-11-06 15:30:25 +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