Commit graph

62 commits

Author SHA1 Message Date
ziggie
41a6c8b3f7
build: bump go to v1.25.11 2026-07-10 19:24:26 -03:00
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
5898e35762
make: add make unit-bench command 2026-05-14 11:38:40 +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
ZZiigguurraatt
91b43118c7 build: bump go to v1.25.5 2026-03-03 14:25:35 -05:00
ZZiigguurraatt
432a228bd6 build: bump go to v1.24.11 2026-02-05 02:57:05 -05:00
ffranr
e96424cc4a
makefile+tools: add custom 'll' linter for extended line length checks
- Replace the default `lll` with a custom `ll` linter, enabling
  configurable exclusions for specific `S` log lines.
- Integrate custom `ll` linter into the build system and `Makefile`.
- Include relevant test cases and configuration for `golangci-lint`.
2025-12-09 16:12:03 +00:00
ffranr
9a5e943842
make: remove redundant job dependencies 2025-12-09 12:47:05 +00:00
ffranr
128e0b6df6
itest: add tranche-based parallel runner and clearer logs
- add tranche splitting/shuffling flags to the itest harness
- add itest-parallel target and scripts to run tranches concurrently
- write per-tranche logs under .logs/trancheN and tail failures for
  clarity
2025-12-09 12:47:05 +00:00
ZZiigguurraatt
ba840892bb build: bump go to v1.24.9 2025-10-24 16:48:53 -04:00
George Tsagkarelis
d96c552bbc
make+itest: pin multi-rfq Yara node to v0.15.0-alpha 2025-10-14 11:38:40 +02:00
George Tsagkarelis
69ca6587b7
build: bump go to v1.24.6 2025-09-18 12:05:28 +02:00
Elle Mouton
eb1d081314
build: bump go version to 1.23.12 2025-08-07 11:10:39 +02:00
Oliver Gugger
503a295252
multi: bump Golang to 1.23.9
Fixes several CVEs by using the latest Golang version to build.
2025-05-21 19:25:30 +02:00
Oliver Gugger
03c80cfeab
multi: add backward compatibility test 2025-05-16 18:52:03 +02:00
Elle
329b939aa6
Merge pull request #1034 from ViktorTigerstrom/2025-04-include-commit-hash
Add `commit_hash`  field to `GetInfo` response
2025-05-16 12:26:02 +02:00
Viktor Tigerström
e30ac3d0a8
multi: update GetInfoResponse response
Add the `commit_hash` field to the GetInfoResponse. The `commit_hash`
field will contain the most recent commit_hash that the build was based
on. If the build had uncommitted changes, this field will contain the
most recent commit hash, suffixed by "-dirty".

The semantics of the `version` field is also updated to always contain
the most recent semantic version of the litd node, following the
semantic versioning 2.0.0 spec (http://semver.org/).
2025-05-13 12:27:19 +02:00
ZZiigguurraatt
b01d45964b Makefile: add go-install-cli-noui option 2025-05-07 13:27:56 -04:00
Viktor Tigerström
f32db6bb52
build: add removal of ./vendor to make clean 2025-04-15 13:31:34 +02:00
Oliver Gugger
cd9c825b74
make: compile binaries in itest-only
The itest-only goal is really useful for not needing to run the app
build. But when switching between lnd versions, it's annoying if the lnd
binary isn't built with itest-only. So we change that and always also
build the btcd/lnd binaries with itest-only. This will take slightly
longer but lead to fewer issues when switching branches between
different lnd major versions.
2025-03-26 09:20:53 -05:00
Elle Mouton
ccb1b64f8b
make: unit test flake hunter
For convenient flake hunting.
2025-03-26 09:20:53 -05:00
Elle Mouton
6c82db3fb3
multi: go version bump to 1.23.6
We update the go version in our go.mod, for our linter,
GH workflows and makefile.
2025-03-15 11:37:15 -05:00
Elle Mouton
caec0742db
db/sqlc: add account related tables and queries
This commit also contains the sqlc.yaml file, the `make sqlc` command
and the script for generating sqlc code. This must be done in this
commit as the script only works if there are queries to generate from.
2025-01-29 16:37:20 +02:00
Elle Mouton
43e1c9ee2d
make: move UNIT variables to testing_flags.mk
And use the new COMPILE_TAGS variable for the unit commands instead of
LND_RELEASE_TAGS.
2025-01-06 08:41:00 +02:00
Oliver Gugger
a7aabcd21b
make: add flake-itest-only goal 2024-11-07 09:41:12 +01:00
Oliver Gugger
7cead0194a
make+perms: allow itest to run with dev build tag
The dev flag allows us to enable some of lnd's configuration flags that
are only available for testing. To speed up any wallet interaction, we
also add the lowscrypt build tag that chooses weak encryption for the
wallet that is much faster (a couple of milliseconds vs. multiple
seconds per wallet creation).
2024-11-07 09:39:16 +01:00
Oliver Gugger
fc77836204
make+app: add dockerized builder for app
We dockerize the app build and use that for both the docker build _AND_
the normal build to make sure the static content is fully reproducible
across different systems.
2024-10-24 11:17:49 +02:00
ffranr
acf547ef3d
makefile+scripts: add Go version check to release command
This commit updates `scripts/release.sh` to include a check for the
correct Go version before executing the release build. This ensures that
the release binaries are built with the specified Go version,
maintaining consistency and integrity for developer signatures.
2024-10-23 14:32:18 +02:00
Oliver Gugger
1338cfad84
make+scripts: add lint check for Golang version
To make sure we use the same Golang version everywhere, we add a new
linter step with scripts copied from lnd.
2024-10-23 14:32:18 +02:00
Oliver Gugger
30eb7e4d2f
make+release: move release script, fix make
Because the "make release" command collided with the release.sh script,
make thought it needed to do something with that file.
We fix that problem in two ways: We move the file into the scripts sub
folder and also tell make that all our defined goals don't correspond to
folders or files.
2024-10-23 14:32:18 +02:00
Oliver Gugger
81f44b7785
multi: add Docker release helper 2024-10-23 11:50:42 +02:00
sputn1ck
bc0bc687ae
multi: add support for building without UI
This commit adds support for building without UI.
If the build tag "litd no_ui" is set the UI will
be disabled.
2024-08-14 13:33:38 +02:00
ffranr
af495cb1b8
makefile: add target clean-itest
This commit adds the command clean-itest. This command deletes itest
binaries.
2024-06-20 17:30:32 +01:00
ffranr
d3aa5f9c9b
makefile: build-itest builds litd-itest 2024-06-20 17:30:31 +01:00
bitromortac
f030c28d68
tools: update linter to latest version
Fixes the timeout keyword.

Also enable speedups by mounting go caches as well as a golangci-lint
cache that caches linter data accross runs.
2024-04-25 14:49:36 +02:00
Viktor Tigerström
ed0e713ff5
make: install litcli with make go-install-cli 2023-06-16 21:59:39 +02:00
Viktor Tigerström
f64c535154
make: add trimpath flag to make go-install cmd 2023-06-16 21:59:28 +02:00
Oliver Gugger
a6a3ab6c24
release+make: also build tapcli 2023-05-16 17:00:55 +02:00
Oliver Gugger
539868d2be
tools+make: update linter 2023-03-29 20:34:34 +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
69516ec675
litrpc: add lit-autopilot protos
In this commit we add all the proto methods and messages that we will
need for the initial autopilot implementation.
2023-01-27 06:47:11 +02:00
Oliver Gugger
843a3fc86a
multi: dockerize tools 2022-10-19 10:57:18 +02:00
Oliver Gugger
ebb5e94381
multi: remove GO111MODULE, add icase flag to itest 2022-10-19 10:57:18 +02:00
Elle Mouton
3e23ae3001
Makefile+github: run unit tests
Currently only the unit-race check and the integration tests are run.
This commit ensures that the unit tests are also run.
2022-09-23 10:32:36 +02:00
Oliver Gugger
eb5782b923
make+GitHub: fix and run unit tests 2022-09-15 13:03:03 +02:00
Oliver Gugger
2e596e2cd2
terminal+make: encode and print LiT version
Fixes #328 by encoding the LiT version and also printing it on startup.
2022-02-17 16:35:56 +01:00
Oliver Gugger
82556f5775
itest+make: add remote mode integration test 2022-02-08 15:33:19 +01:00
Oliver Gugger
3fc65556c5
itest: copy integration test framework from lnd 2022-02-08 15:33:16 +01:00
Elle Mouton
9b84dbc7c9
cmd/litcli: add litcli for session functions 2021-11-24 13:44:26 -05:00
Oliver Gugger
81e893f7b5
multi: add litrpc package 2021-11-24 13:44:25 -05:00