Commit graph

364 commits

Author SHA1 Message Date
Turtle
1fcad30708
cli: look in correct directory for tls cert 2025-01-14 12:23:31 -06:00
Turtle
bad4dc2ffc
cfg: point logs to the correct location 2025-01-14 12:21:19 -06:00
Alyssa Ferris
73c73fa89c
Merge pull request #176 from niteshbalusu11/add-docker-support
Add dockerfile and sample docker compose
2025-01-14 10:18:50 -06:00
Nitesh Balusu
25f4fea9f7
docker: add docker and docker-compose support
add same docker support

modify sample docker compose file

include lndk-cli in the docker image

fix docker compose file

update dockerfile to use github and use slimmer image

lower grace period

use better lnd paths

add some lnd config
2025-01-13 20:51:40 -05:00
dunxen
9fc8038f87
Merge pull request #196 from lndk-org/2025-01-updatecargodist 2025-01-08 18:23:02 +02:00
Alyssa Ferris
20f179e0cf
Merge pull request #194 from a-mpch/2025-01-reconnect-lnd
messenger: close server when lnd is killed
2025-01-07 13:55:21 -06:00
Duncan Dean
34905f91d4
Update MAINTAINERS.md for dist 2025-01-07 08:30:11 +02:00
Duncan Dean
6f8c395cdb
Update cargo-dist to dist 0.27.1
The `cargo-dist` tool has been renamed to `dist` to reflect the fact
that it is becoming a general purpose tool to distribute binaries.

We update `cargo-dist` to `dist` automatically by running `dist init`.
Note the generation of the new custom configuration file which will
be used by `dist` going forward.
2025-01-07 08:30:11 +02:00
Duncan Dean
10c95884ca
Use 1.83.0 rust toolchain & fix new clippy errors 2025-01-07 08:29:54 +02:00
Maurice Poirrier Chuden
4283671f2a
messenger: close server on lnd kill
this commit aims to fix lndk hanging when lnd is killed
Processes did not stop and would faild to send or receive onion messages
even if lnd came back online. Quick solution implemented in this commit
is to close up the server when receiving those errors.
2025-01-06 20:23:42 -03:00
dunxen
f2c06d77f2
Merge pull request #193 from a-mpch/lndk_conf_from_different_sources
Server: Config defaults to root and Datadir
2024-12-23 08:11:45 +02:00
Maurice Poirrier Chuden
a2b42b5a79
server: default lndk conf in lndk dir
LNDK is already using a datadir to store TLS certificates.
In this PR we default LNDK config and data to ~/.lndk.
Datadir is moved inside the default dir ~/.lndk/data. Then,
we expect lndk.conf file to be iether in root of the project,
or the default LNDK config folder or --config flag.
Precedence is flag > root > default dir.
2024-12-14 16:54:34 -03:00
dunxen
bce93885f5
Merge pull request #192 from mhrheaume/mhr/lndk_data_dir
Added data_dir configuration options.
2024-11-28 09:35:43 +02:00
Matthew Rheaume
7335927af5 Fall back to data_dir if log_file is unspecified. 2024-11-18 22:21:13 -08:00
Matthew Rheaume
a47a2ff5a9 Renamed log_dir configuration to log_file.
This is expected to be passed in as a file, not a directory, so change
the name to reflect that fact.
2024-11-18 22:18:15 -08:00
Matthew Rheaume
0ec2e808ca Added data_dir configuration options.
In certain deployment scenarios, we may not want (or be able) to write
to the default ~/.lndk data directory. For example, the home directory
may be mounted as read-only, or mounted using ephemeral storage.

This change adds a new `data_dir` configuration option to specify where
LNDK should store data. If this option isn't specified, then falls back
to the default ~/.lndk.
2024-11-11 12:14:56 -08:00
dunxen
ea35b47d60
Merge pull request #153 from kannapoix/make-rate-limit-configurable 2024-11-08 23:41:42 +02:00
dunxen
190e78274d
Merge pull request #168 from kannapoix/improve-rate-limit-testing 2024-11-08 23:40:33 +02:00
UK
8d34e5ba4c Make rate limits configureable.
Add 'rate_limit_count' and 'rate_limit_period' to configuration option.
2024-10-15 10:28:26 +09:00
dunxen
925ce05096
Merge pull request #178 from jordan-bravo/master
chore: update variable names & provide clarity on features in readme
2024-10-09 11:08:21 +02:00
Jordan Bravo
fce5b5bfe2
chore: update readme
In the README, example variable names for `lndk.conf` were incorrect.
They need to be snake_case rather than kebab-case.

Specifically:
`cert-path` --> `cert_path`
`macaroon-path` --> `macaroon_path`

This commit updates the README with the proper variable names.

Additionally, this commit changes the wording for clarity by specifying
LNDK "features" rather than "options".
2024-09-26 10:33:48 -04:00
UK
adac81a035 Use tokio's testing feature in tests for rate limitter instead of mocking of TokioClock. 2024-09-03 09:05:30 +09:00
dunxen
1cf2906d5d
Merge pull request #166 from dunxen/2024-9-disablewindowsrelease
chore: disable windows release support for now
2024-09-02 21:11:41 +02:00
Duncan Dean
7717c4ab2c
chore: disable windows release support for now 2024-09-02 21:10:26 +02:00
dunxen
b222e75f7e
Merge pull request #165 from dunxen/2024-9-pinlinuxprotoc
chore: update runner for linux builds and pin protoc
2024-09-02 20:56:25 +02:00
Duncan Dean
dd0f1df4e4
chore: update runner for linux builds and pin protoc 2024-09-02 20:55:29 +02:00
dunxen
18749551a8
Merge pull request #164 from dunxen/2024-9-addreleasedeps
chore: use any linux version for protoc on release
2024-09-02 20:43:27 +02:00
dunxen
479711b04c
Merge branch 'master' into 2024-9-addreleasedeps 2024-09-02 20:43:16 +02:00
Duncan Dean
8c848b6d55
chore: use any linux version for protoc on release 2024-09-02 20:42:38 +02:00
dunxen
3a533a423c
Merge pull request #163 from dunxen/master
chore: use correct protoc version for linux on release
2024-09-02 20:29:22 +02:00
Duncan Dean
06aaf24374
chore: use correct protoc version for linux on release 2024-09-02 20:27:33 +02:00
dunxen
7b6635cf0e
Merge pull request #162 from dunxen/2024-9-addreleasedeps
chore: use correct protoc versions for release
2024-09-02 20:12:24 +02:00
Duncan Dean
45599bc0d7
chore: use correct protoc versions for release 2024-09-02 20:11:40 +02:00
dunxen
bcec9b4890
Merge pull request #161 from dunxen/2024-9-addreleasedeps
chore: add release deps
2024-09-02 19:43:14 +02:00
Duncan Dean
597f156aac
chore: add release deps 2024-09-02 19:42:12 +02:00
Alyssa Hertig
4e77128e3b
Merge pull request #160 from lndk-org/release-0.2.0
chore: Release lndk version 0.2.0
2024-09-02 11:47:27 -05:00
Orbital
3b75dfb4e5
chore: Release lndk version 0.2.0 2024-09-02 11:31:36 -05:00
Alyssa Hertig
15e9c4f02f
Merge pull request #159 from dunxen/2024-8-cargodistupdates
release: update cargo-dist
2024-09-02 11:08:17 -05:00
Duncan Dean
67baffc207
release: update cargo-dist 2024-08-31 17:14:30 +02:00
Alyssa Hertig
83e1c90dbe
Merge pull request #154 from orbitalturtle/intro-announced-peers
offers: don't include unadvertised nodes as introduction node candidates
2024-08-28 13:03:48 -05:00
Orbital
5acb051643
offers: don't choose unadvertised node as introduction node 2024-08-28 12:55:41 -05:00
Alyssa Hertig
210cfdf345
Merge pull request #152 from orbitalturtle/handle-sigterm
main: handle termination signals
2024-08-28 12:41:20 -05:00
Orbital
f94892cb67
main: handle sigterm/sigint signals 2024-08-27 23:37:27 -05:00
Alyssa Hertig
c5dafbcbf8
Merge pull request #155 from orbitalturtle/cltv-revert
offers: add back extra cltv expiry delta
2024-08-26 20:36:38 -05:00
Orbital
8071f4bc31
offers: add back extra cltv expiry delta
We had removed this expiry delta because payments to more recent versions of
LDK and CLN were working without it. But without it, some payments to other
versions fail.
2024-08-26 20:26:41 -05:00
Orbital
0a2ffb8635
tests: update test pubkey to return two keys 2024-08-26 14:51:04 -05:00
Orbital
88b1484e11
main: move logger setup further up
So that we can log some of the initial errors instead of printing them.
2024-08-19 12:50:18 -05:00
Alyssa Hertig
259de8b8ef
Merge pull request #133 from orbitalturtle/transient-keys-2
transient keys for signing invoice requests
2024-08-13 14:04:11 -05:00
Orbital
b1047ed860
offers: remove extra cltv expiry delta
In earlier versions of ldk-sample we couldn't make a payment without this
additional delta. But CLN doesn't like this additional delta and it's no longer
necessary for payments to ldk-sample.
2024-08-12 21:09:31 -05:00
Orbital
3bd831af90
multi: move to derive_new_key for key gen
We should use a new key to sign each invoice request to improve sender privacy
and to ensure we can pay a particular CLN offer more than once.
2024-08-12 21:09:27 -05:00