Commit graph

1075 commits

Author SHA1 Message Date
Elle Mouton
37b24d59dd
multi: split out LND connection from rpcProxy
Remove the responsibility of creating an LND connection from the
rpcProxy and instead let the main LightningTerminal struct handle it.
All the lnd-connection specific functions are also moved into their own
file.
2023-05-01 00:15:56 -07:00
Elle Mouton
116322d72c
rpc_proxy: add hasStarted method to rpcProxy
Add a `started` variable to the rpcProxy that is used to indicate if the
proxy is ready to handle requests. This is because currently the
webserver is dependent on the rpcProxy to start and we want to be able
to start the webserver without being dependent on the rpcProxy so that
it can be used to handle status requests in a future commit. So with
this commit, we can now saftely start the webserver earlier on and then
if requests come through for the rpcProxy, an error will be displayed to
the user.
2023-05-01 00:15:53 -07:00
Elle
73c36ac9b9
Merge pull request #536 from lightninglabs/lnd-16-2
build: update to lnd v0.16.2
2023-05-01 09:05:57 +02:00
Olaoluwa Osuntokun
d404bc2b59
build: update to lnd v0.16.2 2023-04-29 11:26:46 +02:00
Oliver Gugger
3b75a21272
Merge pull request #535 from GeorgeTsagk/remote-lnd-doc
doc: add note for remote lnd credentials
2023-04-26 10:24:22 +02:00
George Tsagkarelis
1cc4eb3226
doc: add note for remote lnd credentials 2023-04-26 11:00:47 +03:00
Elle
ab31db4acd
Merge pull request #532 from lightninglabs/lnd-16-1
build: update lnd version to v0.16.1
2023-04-25 18:37:13 +02:00
Olaoluwa Osuntokun
df1e0f910b
build: update lnd version to v0.16.1 2023-04-25 18:16:28 +02:00
Oliver Gugger
ac36b9ac60
Merge pull request #530 from lightninglabs/default-index-html
Fix "no matching files found" compilation error when litd is used as a library
2023-04-17 16:49:59 +02:00
Oliver Gugger
2466f82b4a
app: re-create .gitkeep file after build
To avoid showing the .gitkeep as being deleted after running the
frontend build, we add it back through a postbuild step.
2023-04-17 10:54:42 +02:00
Oliver Gugger
4499e45ac5
app/build: add .gitkeep to make sure directory exists
Even though the content of the app/build directory should be ignored by
git, we need it to exist in order for the Golang embedded file system
compilation to succeed on an empty project. This is required to fix
compilation issues when lightning-terminal is used as a module
dependency in another project, where the frontend build process can't be
triggered.
2023-04-17 10:54:25 +02:00
Oliver Gugger
94eff95228
Merge pull request #518 from lightninglabs/linter-fix
mod: fix linter, bump Pool version, prepare for lnd 0.16, prepare for v0.9.0-alpha release
2023-03-30 09:25:01 +02:00
Oliver Gugger
50228a870c
version: bump to v0.9.0-alpha 2023-03-29 20:34:41 +02:00
Oliver Gugger
27f1fd3e44
github: disable linter
We run into an issue with the linter that couldn't be fixed yet:

level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package loopdb: could not load export data: no export data for \"github.com/lightninglabs/loop/loopdb\"\n\n"

We disable the linter for now until we find out what the problem is.
2023-03-29 20:34:40 +02:00
Oliver Gugger
a92db4c2a1
mod: make sure correct grpc version is pulled in 2023-03-29 20:34:39 +02:00
Oliver Gugger
c858e64615
README: prepare for lnd 0.16 release 2023-03-29 20:34:38 +02:00
Oliver Gugger
df7684ce67
mod+proto+app: bump loop to v0.22.0-beta 2023-03-29 20:34:37 +02:00
Oliver Gugger
037fa9a2cc
mod: bump pool to v0.6.2-beta 2023-03-29 20:34:36 +02:00
Oliver Gugger
539868d2be
tools+make: update linter 2023-03-29 20:34:34 +02:00
Oliver Gugger
163af3d2bd
Merge pull request #522 from ellemouton/litREST
litrpc: add REST annotations for Litd RPC services
2023-03-20 20:13:57 +01:00
Elle Mouton
365ad8fc17
proto: add new lit service protos
Add missing lit service protos to 'build-protos.js' and run `make
protos`
2023-03-20 20:46:07 +02:00
Elle Mouton
e698d709be
itest: test LiTd REST endpoints 2023-03-20 20:45:25 +02:00
Elle Mouton
c2c8b978b5
terminal: register all Litd services with REST handler 2023-03-20 20:45:25 +02:00
Elle Mouton
e22f9e7b83
litrpc: add Litd REST annotations 2023-03-20 20:45:24 +02:00
Elle Mouton
6ec28a6fa6
litrpc: add cli directives to Proxy service 2023-03-20 20:45:14 +02:00
Elle Mouton
16a9c7f744
litrpc: add comments and lncli directives to Sessions service 2023-03-20 13:25:25 +02:00
Elle Mouton
6c3fa5a6ad
litrpc: add cli directives to Autopilot service 2023-03-20 13:25:22 +02:00
Elle Mouton
de3e492d41
cmd/litcli: improve autopilot docs and add list command 2023-03-20 12:14:24 +02:00
Elle Mouton
e0747b5354
litrpc+rpcserver: add firewall service comments and cli directives 2023-03-19 17:41:04 +02:00
Elle Mouton
0164175f3b
litrpc: add cli directives to Accounts service 2023-03-19 17:18:10 +02:00
Elle Mouton
a8b4ef1d48
litrpc+autopilotrpc: bump docker go version to 1.19.4-buster 2023-03-19 17:16:59 +02:00
Elle
e50c228143
Merge pull request #520 from ellemouton/fixDBDir
terminal: fix macaroon DB directory
2023-03-18 09:35:18 +02:00
Elle Mouton
4d43068883
terminal: fix macaroon DB directory
The macarooon db should be under the network directory.
2023-03-18 08:31:44 +02:00
Oliver Gugger
f52b0469a8
Merge pull request #519 from ellemouton/disableui
multi: add DisableUI option
2023-03-17 18:05:44 +01:00
Elle Mouton
4a132f16b7
itest: run full auth suite with UI disabled 2023-03-17 11:21:42 +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
Elle Mouton
0ec95086a8
multi: add DisableUI option
Add a new `disableui` config option. If this option is set then the user
no longer needs to set the `uipassword` config option. This also means
that the user will no longer be able to interact with the local UI.
2023-03-17 11:16:22 +02:00
Elle Mouton
a566bfce48
itest: use Litd's new StopDaemon method
Let the itest framework make use of the new StopDaemon method. When
instructed to Stop the node, if it is running in remote mode then only
the litd node itself should be stopped and not the remote LND node.
2023-03-17 11:16:20 +02:00
Elle Mouton
dbe62e074a
multi: add StopDaemon method to Lit
In this commit, a new Proxy service is added with a StopDaemon method.
This method can be used to stop the Litd service. This will be useful in
remote-mode itests where we want to restart Litd without also restarting
LND. It also provides a nice way of shutting down Litd in remote-mode.
A GetInfo method is also added to the service which for now just returns
the Litd version. The reason for adding this method now is so that
access to the new Proxy service can be tested in the itests withouth
actually shutting down Litd.
2023-03-17 11:14:24 +02:00
Oliver Gugger
cea367c7c4
Merge pull request #517 from positiveblue/lnd-v0.16.0-beta
multi: update lnd dependency to `v0.16.0-beta.rc3`
2023-03-15 17:28:49 +01: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
Oliver Gugger
592c9e35e0
Merge pull request #515 from lightninglabs/dependabot/go_modules/golang.org/x/crypto-0.1.0
build(deps): bump golang.org/x/crypto from 0.0.0-20211215153901-e495a2d5b3d3 to 0.1.0
2023-03-07 10:30:18 +01:00
dependabot[bot]
edbff9fd93
build(deps): bump golang.org/x/crypto
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20211215153901-e495a2d5b3d3 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 08:46:07 +00:00
Oliver Gugger
9bddcca30d
Merge pull request #513 from lightninglabs/dependabot/go_modules/autopilotserverrpc/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.0.0-20201021035429-f5854403a974 to 0.7.0 in /autopilotserverrpc
2023-03-07 09:44:58 +01:00
dependabot[bot]
18ce3ed62c
build(deps): bump golang.org/x/net in /autopilotserverrpc
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20201021035429-f5854403a974 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 09:09:59 +02:00
Oliver Gugger
5052d72ccb
Merge pull request #507 from lightninglabs/mac-os-arm
make: add darwin-arm64 to release build architectures
2023-02-27 21:46:41 +01:00
Oliver Gugger
2dd36335e9
make: add darwin-arm64 to release build architectures 2023-02-27 21:22:14 +01:00
Oliver Gugger
234e47f0f1
Merge pull request #499 from positiveblue/lit-tls-cert
multi: always use Lit's TLS cert
2023-02-23 16:52:41 +01:00
positiveblue
8e6ef3f567
itest: add default context timeout to all itests 2023-02-23 07:35:25 -08:00
positiveblue
c578280c7c
itest: always close raw connections
Close connections when we are not going to use them anymore (usually a
`defer` is enough)
2023-02-23 07:35:24 -08:00