Commit graph

27 commits

Author SHA1 Message Date
Calvin Zachman
862c1dba9d
multi: bump lnd, lndclient, and taproot-assets dependencies
Bumps lnd to v0.21.0-beta, lndclient to v0.21.0-1, and
taproot-assets to v0.8.0 across the root, litrpc, and perms
modules. taprpc uses the proper v1.1.0 tag.

lnd removed the deprecated SendPaymentSync, SendToRouteSync,
SendPayment (streaming), and SendToRoute (streaming) RPCs. The
account interceptor checkers and their tests for these RPCs are
removed since no client can call them anymore. The V2 checkers
already handle account tracking for payments.

The itest harness is updated for lnd v0.21's miner API changes
(SendOutputs -> SendOutput, Miner.Client.Generate -> GenerateBlocks,
waitForNTxsInMempool replaced by Miner.AssertNumTxsInMempool) and
TimeLockDelta bumped from 20 to 40 since lnd v0.21 raised
MinCLTVDelta from 18 to 24.
2026-06-08 13:18:37 -04:00
Viktor Torstensson
d43d4446b8
itest: avoid blocking on failed litd exits
Close the process exit signal before forwarding litd startup errors from
the wait goroutine. This lets the harness observe that the process has
already exited even when no receiver is currently ready on the error
channel.

Use a non-blocking send for the captured process error so failed startup
paths do not hang the goroutine while holding back log finalization or
process exit handling.

This will be needed for the upcoming commit which adds itest coverage
of deprecated kvdb databases.
2026-05-14 11:39:17 +02:00
Dario Anongba Varela
5960b65cfa
itest: remove custom channels tests and backward compat infrastructure
Custom channels integration tests have been fully migrated to the
taproot-assets repository where they run natively via the tapd-integrated
binary without any lightning-terminal dependency. This removes the
duplicate test suite and all supporting infrastructure from LiT.

The LiT-specific itests are unaffected.
2026-03-16 15:37:49 +01:00
ffranr
a0e63124c0
multi: reformat long lines for readability
- Replace occurrences of `// nolint:lll` with `// nolint:ll` across
  files for consistency.
- Reformat multiline strings, comments, and function parameters to
  improve clarity and adhere to style guidelines.
- Add `// nolint:ll` comments where necessary to prevent linter
  warnings.
2025-12-09 16:12:03 +00:00
George Tsagkarelis
e4bbe5260d
itest: add option for node upgrade/downgrade when suspending 2025-10-15 13:43:24 +02:00
George Tsagkarelis
3ccfc5231b
multi: prepare for new non-constant string rule
In preparation for the next commit which bumps golang to a newer
version, we want to make some code changes that would otherwise render
some log-related calls problematic. With go1.24 a new govet rule was
added that disallows non-constant strings (i.e including a tag like
"%s") in calls to printf. See more in the related issue
https://github.com/golang/go/issues/60529.
2025-09-18 12:05:28 +02:00
Oliver Gugger
03c80cfeab
multi: add backward compatibility test 2025-05-16 18:52:03 +02:00
Oliver Gugger
910c806b82
itest: use Charlie as proof courier, remove Zane
We remove the Zane node from all tests where its only role was being the
universe server. Starting a node takes multiple seconds, so if we can
spin up fewer nodes, we can save some time.
And functionality wise Charlie can easily be the universe, we just need
to define its port upfront so we can configure it to be its own proof
courier.
The topology for all tests is at least the following:

Charlie  --[assets]-->  Dave  --[sats]-->  Erin  --[assets]-->  Fabia

Which means, we the case where one of the channel peers is its own
universe (Charlie in Charlie<->Dave) as well as the case where the
universe server is a remote node (Charlie in the Erin<->Fabia channel).
2025-04-29 21:16:45 +02:00
Oliver Gugger
774d6afa61
itest: speed up test by skipping Alice+bob 2025-04-24 11:55:41 +02:00
Elle Mouton
9e46d85ec9
itest: specify fee service URL
So that we use static fees in tests. This update is required with the
latest LND update because of [this](b89387a6da) diff.
2025-03-26 09:20:53 -05:00
Oliver Gugger
23039a92b0
itest: add custom channel integration test
Co-authored-by: Olaoluwa Osuntokun <laolu32@gmail.com>
Co-authored-by: Gijs van Dam <gijs@lightning.engineering>
Co-authored-by: George Tsagkarelis <george.tsagkarelis@gmail.com>
2024-12-19 21:21:39 +01:00
Oliver Gugger
d368f8a8fe
multi: bump to lnd/tapd/lndclient v0.18.4-beta/v0.5.0-alpha 2024-12-19 21:21:38 +01:00
Elle Mouton
70cacf0048
itest: add NewNodeWithSeed
This will be used in our stateless init tests to initialise a LiT node
in stateless init mode. This method handles the creation of the wallet
and returns the LND admin macaroon that we can use.
2024-10-14 16:57:00 +02:00
Elle Mouton
28b8f2abe1
itest: pass SkipUnlock to BaseNodeConfig
So that a node can be started without unlocking the wallet.
2024-10-14 15:48:18 +02:00
Viktor Tigerström
b7fcaa50e8
build+itest: lnd & loop versions
Bump lnd to v0.18.3-beta & loop to v0.28.7-beta.
Also bump lnd/sqldb to v1.0.4, as it's required by lnd v0.18.3-beta.
2024-09-16 12:50:55 +07:00
Viktor Tigerström
f185378c42
mod: bump lnd, Go, lndclient, loop, pool and tapd
Bump lnd to `v0.18.0-beta`. This also bumps `lndclient` to `v0.18.0-1`
and loop to `v0.28.5-beta`. Note that since loop `v0.28.5-beta` depends
on the lnd  `v0.18.0-beta.1` tag, litd will also use that tag. That tag
is still referencing the same commit as lnd `v0.18.0-beta` though, so
that's not an issue.

We also need to bump the `pool` and
`taproot-assets` daemons to branch specific versions that support
lnd `v0.18.0-beta`. Finally, the `pool` auctioneerrpc package is also
bumped to `v1.1.2`.

We also adapt it itests for the new lnd version.

Finally as lnd `v0.18.0-beta` uses go 1.22.3, we also bump the Go
version in the go.mod file.
2024-06-06 13:45:16 -04:00
Viktor Tigerström
b398205744 itest: export HarnessNode publicly 2023-05-11 00:55:23 +02:00
Viktor Tigerström
dfa3aee8bf itest: export ServerHarness publicly 2023-05-11 00:55:14 +02:00
Elle Mouton
15ccc09131
itest: make Litd arguments configurable on restart
Add new `WithoutLitArg` and `WithLitArg` functional options that can be
passed to `GenArgs` when a node is being restarted. This makes it easy
to change the arguments of a node on restart.
2023-03-17 11:21:14 +02:00
positiveblue
c267ef64eb
multi: update lnd dependency to v0.16.0-beta.rc3
- Bump lnd and other module dependencies.
- Bump Go build version & RPCs
- Refactor itests to use the new lnd itest framework.
2023-03-15 08:36:23 -07:00
Elle Mouton
e793268de7
itest: add mock autopilot server to network harness 2023-01-27 06:47:14 +02:00
Oliver Gugger
c3cad46aa2
multi: fix linter issues 2022-10-19 10:57:18 +02:00
Oliver Gugger
76b162d3f7
itest: export NewNode, remove OpenChannelParams 2022-10-19 10:57:17 +02:00
Oliver Gugger
1444e7a180
multi: bump all dependencies to latest versions 2022-06-24 16:18:14 +02:00
Oliver Gugger
82556f5775
itest+make: add remote mode integration test 2022-02-08 15:33:19 +01:00
Oliver Gugger
08aa0910a1
itest: add litd specific harness features, bump lnd version 2022-02-08 15:33:17 +01:00
Oliver Gugger
3fc65556c5
itest: copy integration test framework from lnd 2022-02-08 15:33:16 +01:00