Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnd: add option for configuring REST port #188

Merged
merged 1 commit into from
Jun 7, 2020

Conversation

mmilata
Copy link
Contributor

@mmilata mmilata commented Jun 2, 2020

I've got a slightly contrived setup where I'm running nix-bitcoin in a container that shares network ports with another container which also uses 8080 and it's harder to change than in lnd ...

@erikarvstedt
Copy link
Collaborator

Could you add this fixup?

modules/lnd.nix Outdated
@@ -45,10 +46,15 @@ in {
description = "The data directory for LND.";
};
rpcPort = mkOption {
type = types.ints.u16;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to change this? From the NixOS module: "types.port: A port number. This type is an alias to types.ints.u16."

If so, should we change all occurrences of types.ints.u16 -> types.port

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should change them separately: #190

@nixbitcoin
Copy link
Member

Concept ACK

@mmilata mmilata force-pushed the lnd-configurable-rest-port branch from 255dc90 to 34f3999 Compare June 2, 2020 16:11
@mmilata
Copy link
Contributor Author

mmilata commented Jun 2, 2020

Updated, PTAL.

@mmilata mmilata force-pushed the lnd-configurable-rest-port branch from 34f3999 to 03a627a Compare June 3, 2020 10:07
Copy link
Member

@nixbitcoin nixbitcoin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK 03a627a06f62446a388ce76dc8ea1305fcb22317

1. Ran ./run-tests.sh locally
2. Deployed to NixOS nix-bitcoin node and confirmed working with
different `restPort` values
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEV3o0Un8+KoXoD+Fk3RH5rVMIs7oFAl7c2yYACgkQ3RH5rVMI
s7pmVRAAnyTQXrVeu823zpie50CYmpzRSwFH2xIrikAYX8jjXHRbJyxEIHp5Dkx0
268+9QNZJP/xBp1D8DEy4/ODShahA5SJB7c0wnP8EkSrx4iDiDtt4rIxC/rcptfS
R3frGIu0mzWcpNqZq5HAVc3eU9OELaOdgU0MAJZBym0jJNFu8M5kmjAtM88UcARm
J2iNHjNNaLOeZgBlx6ZzkY2x0aFH12gOsbWC65yGK3RnYf0jhlrw96onfaigbis1
lpqcM8E9y+/+DcY+kS7EUYVdTAh01mMfsZ+ILLW/FCyHUTXAe0e3kyNbNMc8Kw/O
7YeXIhRCK4G64fSCndrSUepsxRLh0rlbrlr5rfdsVdbKKAkLqXMprVCiQTNxOoLF
GTSVm48MRsOSSWphCug5roMNJ/HhXW/A9Z4mW90NdcsIT8tsmyYmcRteEnnRZeQR
Q10uhRZ6UMERLzr2/SR89jrBV75qIVcLWaKg5vWWq5Z0YIqj1v7L2a+Gsgcnr54d
++RHlHpOlLI5DLS6M2bNpllM1+hdlhdMBah/fo3S9Zvzm/MIE+dvkzmPMUM0p4Qx
0CFbqWBVUZekbORTFqW66gocBatpQ+npdFJai5ub9NIMJIj/Gy2WVqIdOLuxJcVr
emf9QxPeoTcnAXgKZt180wwa7O1TcKTNsls9jeehqanQlXJQA3s=
=rv1H
-----END PGP SIGNATURE-----

@jonasnick jonasnick merged commit 94672e8 into fort-nix:master Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants