Orbital
dd98a219a9
cli: return error code on error
2024-06-24 00:21:51 -05:00
Alyssa Hertig
d1c668cb2b
Merge pull request #112 from lndk-org/tls-server
...
secure the gRPC server with TLS
2024-06-19 00:18:28 -05:00
Orbital
15bbe3fcab
cli: add option to pass in LNDK tls cert directly
...
Some users would rather pass in the TLS cert directly as a pem-encoded string,
rather than pull it from a file.
2024-06-18 23:33:33 -05:00
Orbital
15220f7cfe
cli: TLS connection with server
2024-06-18 23:33:32 -05:00
Orbital
509453ce0f
server: require TLS for interacting with server
...
This PR autogenerates TLS credentials in LNDK's data dir at ~/.LNDK and
requires TLS to be used when connecting to the gRPC server.
Some of this code took inspiration from CLN and TEOS's gRPC servers, so credit
where it's due.
2024-06-18 23:33:32 -05:00
Orbital
ba23bcdc91
config: clarify where log file is stored by default
2024-06-18 23:33:31 -05:00
Orbital
bce3a67ca1
main: auto-create data directory at ~/.lndk
2024-06-18 23:33:28 -05:00
Alyssa Hertig
b4f6ba76ba
Merge pull request #117 from mauricepoirrier/feat/prefix-ldk-logger
...
logs: add ldk sublogger
2024-06-18 22:04:32 -05:00
Maurice Poirrier Chuden
b341ace87b
logs: add ldk sublogger
...
This commit introduces an ldk sublogger using log4rs. The new logger is then utilized in MessengerUtilities, where it is passed to create LDKCreateOnionMessenger instance
2024-06-18 20:09:19 -04:00
Alyssa Hertig
6132601554
Merge pull request #113 from orbitalturtle/max-width-fmt
...
Cleanup: cargo fmt max comment length
2024-06-08 13:47:26 -05:00
Orbital
27df32b670
Remove unnecessary text
2024-06-08 13:27:01 -05:00
Orbital
4b5279ac36
actions: update codecov-actions to v4
...
v4 allows for "tokenless uploads" when users submit pull requests
from their own forks of LNDK. This allows outside contributors to the
project to run the action successfully.
2024-06-08 13:26:29 -05:00
Orbital
532b8c18e6
add .vscode to .gitignore
2024-06-07 21:53:14 -05:00
Orbital
35258ff64e
actions: update fmt workflow with max comment width
2024-06-07 21:53:14 -05:00
Orbital
5e1cfb00f8
docs: update cargo fmt instructions for contributors
2024-06-07 21:52:09 -05:00
Orbital
0d1a417aae
multi: format comments to 100 width
2024-06-07 21:50:38 -05:00
Alyssa Hertig
b2586d77ad
Merge pull request #104 from lndk-org/grpc-server
...
Setup grpc server
2024-06-05 14:52:22 -05:00
Orbital
eb321f384c
main: add grpc server config options
...
Co-authored-by: Tom <tom@strike.me>
2024-05-29 22:58:29 -05:00
Orbital
8db9d583c6
docs: update docs with server updates
2024-05-29 22:58:29 -05:00
Orbital
ed7a8779c1
cli: update CLI to connect to new gRPC server
...
This updates the CLI to connect to the LNDK gRPC server in order to make API
calls. We add the necessary macaroon metadata to each request. In addition,
we remove the cert and address flag options because we no longer require
passing in an LND certificate and address to connect to LND.
2024-05-29 22:54:00 -05:00
Orbital
d9ef3dbae4
multi: setup grpc server
2024-05-29 17:04:47 -05:00
Orbital
2952280f21
multi: expose payment when done tracking it
2024-05-28 21:09:15 -05:00
Orbital
0ad9670009
lib: remove offer from map if we fail/succeed to pay
...
That way, we don't get a "AlreadyProcessing" error if the client attempts to
pay the offer a second time.
2024-05-28 21:09:15 -05:00
Orbital
d858e0983e
multi: delete started channel
...
With the grpc server, we don't need to check whether the onion messenger has
started before we pay an offer - we know it's already running.
2024-05-28 21:09:14 -05:00
Orbital
a7675678c1
lnd: move get network logic into separate function
2024-05-28 21:09:14 -05:00
Orbital
94b6b719af
main+lib: move logger out of run method
...
We move logger setup into main, so we're able to access the logger when we
start up the server.
2024-05-28 21:09:14 -05:00
Orbital
e51a15e8ca
onion: remove RefCell from MessengerUtilities
...
This commit removes the RefCell in MessengerUtilities, which hampers us from
being able to reference OfferHandler in two different tokio tasks, which we'll
need to do when we set up our grpc server.
2024-05-28 21:09:13 -05:00
Orbital
9904ee0f9c
lib: move and Arc-ify OffersHandler
...
This commit Arc-ifies the reference to OffersHandler, which is necessary
because once we set up the grpc server, we'll need a second thread-safe
reference to it.
2024-05-28 21:09:13 -05:00
orbitalturtle
c66bdbae42
Merge pull request #109 from orbitalturtle/load-creds-directly
...
Add the option to load cert/macaroon directly into lndk
2024-05-23 17:33:09 -05:00
Orbital
01d627de1a
docs: update docs with new mode for passing in creds
2024-05-21 14:23:26 -05:00
Orbital
ef07ebbf35
cli: add option to pass cert/macaroon in directly to cli
2024-05-21 14:23:25 -05:00
Orbital
53ff36722f
cli: default macaroon path should depend on the specified network
2024-05-21 14:23:25 -05:00
Orbital
9735c2c95f
multi: add option to pass cert/macaroon in directly to lndk
2024-05-21 14:23:21 -05:00
orbitalturtle
c96a3f98b2
Merge pull request #105 from lndk-org/vscode
...
Add vscode to gitignore
2024-05-16 18:24:11 -05:00
Orbital
cc4f6f3e16
clippy: move outer attribute into inner
2024-05-16 18:17:20 -05:00
orbitalturtle
99660371f3
Merge pull request #110 from lndk-org/actions-rust-version
...
actions: pin Rust version
2024-05-16 18:16:20 -05:00
Orbital
e654ddc543
clippy: move outer attribute into inner
2024-05-16 17:50:20 -05:00
Orbital
61df50d58e
actions: Specify Rust version to use
2024-05-16 17:46:28 -05:00
Carla Kirk-Cohen
0f9b3c291a
Merge pull request #101 from orbitalturtle/cli-pay-offer
...
Cli: add pay offer command
2024-04-17 08:33:36 -04:00
Carla Kirk-Cohen
dd35071e7c
Merge pull request #99 from lndk-org/send-ppm-fee-fix
...
Add missing fee ppm parameter
2024-04-02 16:30:40 -04:00
Orbital
4d2d513151
docs: Add instructions for paying an Eclair offer
2024-03-28 14:11:00 -05:00
Orbital
c656c4ab88
docs: Add instructions for paying an offer with the cli
2024-03-28 14:10:59 -05:00
Orbital
0ffdeaace1
cli: Add cli command to pay offer
2024-03-28 14:10:55 -05:00
Orbital
bcb76c0e76
cli: add global arguments for connecting to lnd
2024-03-28 13:58:07 -05:00
Orbital
fe2943572b
lnd: convert network string to lowercase before processing
2024-03-28 13:58:06 -05:00
Orbital
f946fa0b53
lnd: export get_lnd_client, features_support_onion_messages & network checker
2024-03-28 13:58:06 -05:00
Orbital
53fef9dbb4
lnd: export network verifier for cli
2024-03-28 13:58:06 -05:00
Orbital
74cdd862db
offers: add timeout for invoice response
2024-03-28 13:58:03 -05:00
Orbital
f201996ff7
lib: when finding route, add missing fee ppm parameter
2024-03-27 21:49:41 -05:00
Carla Kirk-Cohen
fa73fd69c5
Merge pull request #97 from lndk-org/log-tweaks-2
...
Logging fixes
2024-03-21 10:52:10 -04:00