Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Ensure default is applied if lnd settings are not present #2334

Merged
merged 2 commits into from
Mar 27, 2020
Merged

Conversation

D4nte
Copy link
Contributor

@D4nte D4nte commented Mar 27, 2020

The Settings struct need to always have a the lightning settings set even if not present in the file to allow the initialisation of a lnd connector in main.rs.

Also, we use reqwest to target the lnd REST API so best to have a URL in the file to avoid conversion later down the stream.

@D4nte
Copy link
Contributor Author

D4nte commented Mar 27, 2020

bors r+

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Mar 27, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 27, 2020

Already running a review

bors bot added a commit that referenced this pull request Mar 27, 2020
2321: Add GitHub Action CI Workflow r=mergify[bot] a=bonomat

Resolves #1407 

This PR introduces GitHub Action CI: 

Within this PR we execute the following targets: 
* `make build` on MacOS
* `make build` on Ubuntu
* `make test` on Ubuntu
* `make e2e` on Ubuntu

Note: 
I've added a new make target `ci_gha` (CI GitHubActions) so that we can keep circleCI running in parallel for some time. Once we decide to completely get rid of CircleCI we can remove/rename this field. I'll create a follow-up ticket on this

Not in this PR:
* `make test` on MacOS as GitHub Action MacOS does not provide Docker. Aperantly this will be provided in the future though. If so, we can run tests on MacOS as well (see here: actions/runner-images#17 (comment))
* `make build/test` on Windows as we do not have an implementation for `lnd_default_dir()` for windows (see here: https://github.com/comit-network/comit-rs/blob/93f58a1762c7c7a8da038a1ec2f22dccea1a21cb/cnd/src/lib.rs#L108-L118). I will track this in another ticket once this PR is merged.

Open TODOs:
* create ticket to fix windows build for github actions:
* create ticket to remove unneeded make target

2334: Ensure default is applied if lnd settings are not present r=D4nte a=D4nte

The `Settings` struct need to always have a the lightning settings set even if not present in the file to allow the initialisation of a lnd connector in `main.rs`.

Also, we use `reqwest` to target the lnd REST API so best to have a URL in the file to avoid conversion later down the stream.

Co-authored-by: Philipp Hoenisch <[email protected]>
Co-authored-by: Franck Royer <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 27, 2020

Build failed (retrying...)

@bors
Copy link
Contributor

bors bot commented Mar 27, 2020

Build succeeded

@bors bors bot merged commit 036abb0 into dev Mar 27, 2020
@D4nte D4nte deleted the lnd-settings branch March 27, 2020 05:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants