Commit graph

26 commits

Author SHA1 Message Date
Viktor Torstensson
c16ff48da6
migstreams: rename package to migsets 2026-05-14 11:39:12 +02:00
Viktor Torstensson
83f3e223fb
migstreams: introduce migstreams package
The upcoming kvdb to sql code migration will be added to as part of the
`sqldb/v2` migration stream. However, since the kvdb to sql migration
will need to use the migration functions present in the `accounts`,
`firewalldb`, and `session` packages, the migration will need to
referernce those packages. That would lead to a circular dependency
though if the migration stream was defined in the `db` package, as those
packages need to import the `db` package.

To avoid this, we introduce a new `migstreams` package that
contains the migration streams, and ensure that the `db` package doesn't
import the `migstreams` package.
2026-05-14 11:38:26 +02:00
Viktor Torstensson
1f9c32df93
mod: add sqldb/v2 dependency to litd
In upcoming commits, we will introduce support for sqldb/v2 in Lightning
Terminal, in order to support code migrations. This is needed, so that
we can ensure that the kvdb to sql migration is run exactly after an
exact sql migration version, and not after all sql migrations have been
executed. The reason why that's important is that sql table definition
may change with future sql migrations, while the kvdb to sql migration
will remain the same and always expect the same table definition.
Therefore, if the kvdb to sql migration is run after all sql migrations,
it may fail due to a table definition mismatch.

This commit adds the sqldb/v2 dependency to `litd`, so that we can
implement it's usage and execution of the kvdb to sql migration
correctly in the upcoming commits.

NOTE: currently the sqldb/v2 dependency hasn't been shipped in any
lnd release, so this dependency currently a forked version of
sqldb/v2.
2026-05-14 11:37:19 +02:00
Elle Mouton
dbec9da31b
multi: update LND and friends
This commit updates:
- LND
- pool
- loop
- taproot-assets
- faraday
- lighting-node-connect
- aperture
- lndclient
- btclog

We start using the new btclog v2 library and the associated breaking
changes in the lnd/build package.

With this commit, we deprecate the `--remote.lit-maxlogfiles` and
`--remote.lit-maxlogfilesize` options and introduce new logging options
under the `--remote.lit-logging` namespace.

Finally, the LND update introduced a new `MaxBlocksMinedPerTest`
variable in the `lntest` package that we now need to override in order
for our itests to pass.
2025-03-26 09:20:52 -05:00
Elle Mouton
d3db19e2cc
db: SQL boilerplate code
This commit adds the boilerplate code we will need in order to start
using SQL backed stores (namely sqlite and postgres) for our DB backend.

NOTE that this has been copied from the taproot-assets repo.
2025-01-29 16:37:20 +02:00
Viktor Tigerström
b6167f1e06
terminal: add gbn subsystem to logger 2024-02-08 19:37:40 +01:00
Elle Mouton
6310eedbfc
multi: init status manager
Initialise an instance of the status manager in LightningTerminal.
Register its gRPC and REST endpoints and also add its method to the set
of LiT whitelisted permissions.
2023-09-22 11:59:24 +02:00
bitromortac
ab39a5b759
firewalldb: return empty map on empty bucket
This commit returns an empty PrivacyMapReader if the privacy bucket for
the group doesn't yet exist.
2023-09-05 15:18:15 +02:00
positiveblue
4be6ffb31f
multi: Add Taproot Assets subserver 2023-05-16 16:59:28 +02:00
Elle Mouton
d02749a5a1
subservers: add new package to manage the lit subservers 2023-05-01 00:15:56 -07:00
Elle Mouton
160977d668
autopilotserver: add an autopilot server client
Add a client for the autopilot server along with a mock server that can
be used in tests.
2023-01-27 06:47:13 +02:00
Elle Mouton
b5d5682a67
rules: add Rule interface 2023-01-27 06:47:12 +02:00
Elle Mouton
eaffa4a74a
firewalldb+log: add main DB structure 2023-01-27 06:47:11 +02:00
Oliver Gugger
8f0bc2f6cb
log+firewall: add firewall package 2023-01-27 06:47:11 +02:00
Oliver Gugger
ff40b20a20
log+accounts: add accounts package 2022-12-02 10:06:50 +01:00
Oliver Gugger
0d416a5168
config+log+rpcmiddleware: add RPC middleware package 2022-09-22 15:59:05 +02:00
Elle Mouton
53b00a4a1a
log: register mailbox logger
Register mailbox logger
2022-03-21 14:18:40 +02:00
Oliver Gugger
b6c98ea3e1
multi: implement LiT gRPC server 2021-11-24 13:44:25 -05:00
Oliver Gugger
39214e121d
multi: bump lnd to version v0.13.0-beta.rc3 2021-05-26 18:37:13 +02:00
Oliver Gugger
26ac69a895
mod+terminal: add pool 2020-11-02 13:17:51 +01:00
Oliver Gugger
b96b72e979
log: downgrade gRPC logger level 2020-10-12 15:32:05 +02:00
Oliver Gugger
df71037904
terminal: extract RPC proxy
To make the purpose and the flow of the RPC proxy more easy to
understand, it is extracted into its own struct and cleaned up.
2020-10-12 15:28:04 +02:00
Oliver Gugger
c8a6263918
multi: change grub to litd, fix comments 2020-07-23 08:56:32 +02:00
Oliver Gugger
33df4a1698
multi: rename golang and make files to lightning-terminal 2020-07-21 22:06:15 +02:00
Olaoluwa Osuntokun
89c2c87571
multi: update to lnd v0.10.3 compatible dep versions 2020-07-08 16:11:01 -07:00
Oliver Gugger
b96b4977f0
multi: replace standalone gRPC web proxy with unified binary 2020-06-02 14:29:38 +02:00