Carla Kirk-Cohen
d13a73a93a
itest: add test coverage for failure at blinded receiver
2024-04-25 09:47:14 -04:00
erik
ab83343c87
multi: repleace ioutil.ReadFile
2024-04-25 11:22:43 +02:00
Oliver Gugger
fe26005228
Merge pull request #8592 from zhiqiangxu/master
...
itest: fix ascii
2024-04-24 11:05:21 -06:00
zhiqiangxu
64740e18cb
itest: fix ascii
2024-04-24 23:30:03 +08:00
ziggie
351e9a68dd
multi: Add tests to psbt and normal open channel flow.
...
Itests were added to the normal channel funding flow and the psbt
funding flow using unstable (unconfirmed sweeper inputs).
2024-04-24 13:58:20 +01:00
yyforyongyu
d854c80aa7
itest+lntest: fix itest re the new sweeping behavior
2024-04-20 04:41:29 +08:00
yyforyongyu
96883f307c
itest+sweep: add itest testSweepCommitOutputAndAnchor
...
This commit adds a test case to check the no deadline sweeping behavior.
The sweeper is updated to make sure it can handle the case for neutrino
backend.
2024-04-19 21:33:39 +08:00
yyforyongyu
6f55a7af05
itest: add new test to check BumpFee
and PendingSweeps
2024-04-19 21:33:38 +08:00
yyforyongyu
db3aad31aa
lnrpc+sweep: rename Force
to Immediate
for clarity
2024-04-19 21:33:37 +08:00
yyforyongyu
563a5caed5
itest: fix watchtower test
2024-04-19 21:33:37 +08:00
yyforyongyu
d4de6dd236
itest+lntest: fix onchain tests
2024-04-19 21:33:37 +08:00
yyforyongyu
9c34eb7a56
itest: fix revocation itest
2024-04-19 21:33:37 +08:00
yyforyongyu
30c2b9f2df
itest: fix channel backup tests
2024-04-19 21:33:36 +08:00
yyforyongyu
f68c14321b
itest: fix multi-hop itest
2024-04-19 21:33:36 +08:00
yyforyongyu
ce58175314
itest+lntest: fix channel force close itest
2024-04-19 21:33:36 +08:00
yyforyongyu
6933c5a86c
itest: remove old CPFP tests
...
The old commitment deadline is removed as it's no longer relevant.
2024-04-19 21:33:36 +08:00
yyforyongyu
a1a480a81c
itest+lntest: add itest testSweepHTLCs
to check HTLC sweepings
2024-04-19 21:33:36 +08:00
yyforyongyu
94e0e32c74
multi: add itest testSweepAnchorCPFPLocalForceClose
...
This commit adds an itest case that focuses on validating the CPFP logic
in anchor sweeping.
2024-04-19 21:33:36 +08:00
yyforyongyu
94390fc775
itest: fix existing itests
2024-04-19 21:33:29 +08:00
yyforyongyu
521b1fc34a
itest+lntest: fix itest re the new block driven behavior
2024-04-19 21:33:26 +08:00
yyforyongyu
6f5b7a9fd3
lntest+itest: fix testOpenChannelLockedBalance
2024-04-19 21:33:24 +08:00
yyforyongyu
519a8749ef
lntest: reflect the updated fee estimator in tests
2024-04-19 21:33:21 +08:00
Carla Kirk-Cohen
0d9a184df8
lntest: dispatch and intercept payment to blinded route
...
We don't support receiving blinded in this PR - just intercept and
settle instead. The HTLC's arrival on the interceptor indicates that
it was successfully forwarded on a blinded hop.
2024-04-03 09:19:42 -04:00
Carla Kirk-Cohen
69e1162dd1
lntest: add route construction to blinded forwarding test
2024-04-03 09:19:41 -04:00
Carla Kirk-Cohen
58dda83b22
lntest: add helper to create blinded route
2024-04-03 09:19:40 -04:00
Carla Kirk-Cohen
a72aaa3d84
lntest: add setup for blinded route forwarding itest
...
Note: the itest is broken up into multiple commits to make it
more readable, they can be squashed post-review.
2024-04-03 09:19:39 -04:00
Joost Jager
0bae781785
routing: add inbound fee support to pathfinding
...
Add sender-side support for inbound fees in pathfinding
and route building.
2024-03-31 18:12:28 +02:00
Joost Jager
ba21ca7609
itest: multi-hop payment test with negative inbound fee
...
Ensure that negative fees are backwards compatible.
2024-03-31 16:49:19 +02:00
Oliver Gugger
23f5f3cde5
Merge pull request #8568 from bhandras/native-sql-ensure-empty-invoicedb
...
lnd: ensure that LND won't start in native SQL mode if it has any KV invoices
2024-03-20 05:34:08 -06:00
Oliver Gugger
ad9144ffa3
Merge pull request #8273 from guggero/bitcoind-26
...
GitHub: use bitcoind v26.0 for CI
2024-03-20 01:50:44 -06:00
Andras Banki-Horvath
2fbffab421
itest: ensure that native SQL LND won't start if it has any KV invoices
2024-03-20 08:46:48 +01:00
Elle Mouton
d87fd6138d
itest: mine blocks on tower session assertion failure
...
In the tower session itest, we make sure to mine blocks on session count
assertion failure. This required because the session count is expected
to change only when 2 things both happen: 1) a closable session is
queued and 2) a new block notification comes through _after_ the session
has been queued. Only then will it be deleted. So we need to do this to
prevent the case where all the block notifications are consumed _before_
the session is queued for deletion. This flake tended to happen in the
windows itest.
2024-03-19 13:17:20 +02:00
Oliver Gugger
9cd7285439
itest+lntest: use system wide unique ports everywhere
...
With this commit we create a new function that returns system wide
unique ports by using a single file to keep track of previously used
ports. We'll want to use this everywhere whenever we need to listen on a
new, random port during unit or integration tests.
Because we now have a unique source, we don't need to apply the port
offset that was used for the different tranches of parallel running
integration tests before.
2024-03-18 16:13:39 +01:00
Oliver Gugger
0bc3d29413
Merge pull request #8496 from aakselrod/locks-to-leases
...
multi: replace `LockOutpoint` with `LeaseOutput`
2024-03-18 03:34:56 -06:00
Alex Akselrod
07ba9d6015
itest: add open channel locked balance test
2024-03-13 09:50:15 -07:00
Olaoluwa Osuntokun
716c6dddd8
Merge pull request #8052 from bhandras/sql-invoices
...
sqldb: `InvoiceDB` implementation
2024-03-06 21:15:14 -06:00
Slyghtning
e79b8b2986
itest: estimate route fee tests
2024-03-05 09:24:27 +01:00
Slyghtning
ef069b658d
itest: preparatory fee estimation changes
2024-03-05 09:24:27 +01:00
Andras Banki-Horvath
ba8e7550d5
itest: add the -nativesql flag to run SQL itests with native SQL tables
2024-03-01 10:08:10 +01:00
Oliver Gugger
6dea39c23a
itest: add new test for FundPsbt with coin selection
2024-02-26 11:06:22 +01:00
Oliver Gugger
9bdddbcc56
mod+chanfunding: use coin selection strategy for channel funding
...
The wallet assembler is now aware of the node config level coin
selection strategy, so we can use it when creating new channels.
2024-02-23 08:58:09 +01:00
Elle Mouton
785790abed
peer/lnwallet: persist shutdown info on send
...
In this commit, we start persisting shutdown info when we send the
Shutdown message. When starting up a link, we also first check if we
have previously persisted Shutdown info and if we have, we start the
link in shutdown mode meaning that it will not accept any new outgoing
HTLC additions and it will queue the shutdown message after any pending
CommitSig has been sent.
2024-02-21 11:58:18 +02:00
Elle Mouton
987604effb
itest: demonstrate shutdown on restart bug
...
This commit adds an itest to demonstrate that the following bug exists:
If channel Shutdown is initiated but then a re-connect is done before
the shutdown is complete, then the initiating node currently does not
properly resend the Shutdown message as required by the spec. This will
be fixed in an upcoming commit.
2024-02-21 11:35:12 +02:00
Elle Mouton
71753af8ee
multi: fix various typos
2024-02-21 11:35:10 +02:00
Elle Mouton
4ab17525ce
itest+lntest: add wtclient session & tower management test
2024-02-20 14:44:39 +02:00
Elle Mouton
59a4bfbc59
itest+refactor: extract various tower test helpers
2024-02-20 14:44:39 +02:00
Elle Mouton
d4424fbcfa
itest: refactor watchtower related tests
2024-02-20 14:44:39 +02:00
yyforyongyu
221e7ff898
itest: update testListPayments
to precisely test timestamp filters
2024-02-05 15:23:57 +08:00
Yong
d41b86bb7e
Merge pull request #7852 from ziggie1984/pathfind_sizeestimate
...
Path Finding Size Estimation including Blinded Path Data
2024-02-05 15:21:51 +08:00
ziggie
4732c09a26
multi: Fix final hop payload size for AMP payments.
2024-02-03 12:16:06 +00:00