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

fix(gateway): allow setting configuration when disconnected #3855

Merged
merged 1 commit into from Dec 6, 2023

Conversation

douglaz
Copy link
Contributor

@douglaz douglaz commented Dec 6, 2023

Looks reasonable to me.

Closes #3852 and is a follow up of #3833

Edit: still leads to an error. Investigating it.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d5a7bfc) 57.21% compared to head (328383b) 57.17%.
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3855      +/-   ##
==========================================
- Coverage   57.21%   57.17%   -0.04%     
==========================================
  Files         193      193              
  Lines       42574    42571       -3     
==========================================
- Hits        24359    24341      -18     
- Misses      18215    18230      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TonyGiorgio
Copy link
Contributor

tACk 328383b

For me it gets errors until bitcoind finishes syncing and then lnd is set up. Afterwards, it loads the gateway correctly.

docker-gatewayd-1  |  macaroon path: /lnd_data/data/chain/bitcoin/signet/admin.macaroon 
docker-gatewayd-1  | 2023-12-06T17:38:48.074881Z  INFO ln_gateway: Established HTLC stream
docker-gatewayd-1  | 2023-12-06T17:38:48.075179Z ERROR ln_gateway::lnd: Failed to establish htlc stream
docker-gatewayd-1  | 2023-12-06T17:38:48.081557Z  INFO ln_gateway: Successfully loaded Gateway clients.
docker-gatewayd-1  | 2023-12-06T17:38:48.081571Z  INFO ln_gateway: Got None while handling HTLC stream, exiting from loop...
docker-gatewayd-1  | 2023-12-06T17:38:48.081575Z  WARN ln_gateway: HTLC Stream Lightning connection broken. Gateway is disconnected
docker-gatewayd-1  | 2023-12-06T17:38:48.081581Z  INFO task: Waiting for task to finish task=LND HTLC Subscription
docker-gatewayd-1  | 2023-12-06T17:38:48.081772Z  INFO task: Task finished task=LND HTLC Subscription
docker-gatewayd-1  | 2023-12-06T17:38:48.081774Z  INFO task: Waiting for task to finish task=register clients
docker-gatewayd-1  | 2023-12-06T17:38:48.081788Z  INFO ln_gateway: register clients task received shutdown signal
docker-gatewayd-1  | 2023-12-06T17:38:48.081797Z  INFO task: Task finished task=register clients
docker-gatewayd-1  | 2023-12-06T17:38:48.081800Z ERROR ln_gateway: Disconnected from Lightning Node. Waiting 5 seconds and trying again
docker-gatewayd-1  | 2023-12-06T17:38:53.083327Z  INFO ln_gateway::lnd: Gateway configured to connect to LND LnRpcClient at 
docker-gatewayd-1  |  address: https://lnd:10009,
docker-gatewayd-1  |  tls cert path: /lnd_data/tls.cert,
docker-gatewayd-1  |  macaroon path: /lnd_data/data/chain/bitcoin/signet/admin.macaroon 
docker-gatewayd-1  | 2023-12-06T17:38:53.131924Z  INFO ln_gateway::lnd: Gateway configured to connect to LND LnRpcClient at 
docker-gatewayd-1  |  address: https://lnd:10009,
docker-gatewayd-1  |  tls cert path: /lnd_data/tls.cert,
docker-gatewayd-1  |  macaroon path: /lnd_data/data/chain/bitcoin/signet/admin.macaroon 
docker-gatewayd-1  | 2023-12-06T17:38:53.131942Z  INFO ln_gateway: Established HTLC stream
docker-gatewayd-1  | 2023-12-06T17:38:53.182521Z  INFO ln_gateway: Successfully loaded Gateway clients.

@Kodylow
Copy link
Member

Kodylow commented Dec 6, 2023

ACK, works when I run it too. @TonyGiorgio if you bump to the newer 0.17.3-beta for LND then it doesn't do the restarts

@elsirion elsirion marked this pull request as ready for review December 6, 2023 19:34
@elsirion elsirion requested a review from a team as a code owner December 6, 2023 19:34
@elsirion
Copy link
Contributor

elsirion commented Dec 6, 2023

@okjodom @m1sterc001guy could you take a look at this later please?

@Kodylow
Copy link
Member

Kodylow commented Dec 6, 2023

@okjodom @m1sterc001guy tagging for visibility

@okjodom
Copy link
Contributor

okjodom commented Dec 6, 2023

I haven't tested new behavior, but change makes sense to me

@douglaz
Copy link
Contributor Author

douglaz commented Dec 6, 2023

Although there are some errors, it works ¯\_(ツ)_/¯

Merged via the queue into fedimint:master with commit d0c4fd1 Dec 6, 2023
22 checks passed
@douglaz douglaz deleted the set_configuration_disconnected branch December 6, 2023 19:58
@justinmoon
Copy link
Contributor

dev call: what is the benefit of setting the network on the gateway in the first place if this will not respect it?

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.

[RC5] "The gateway is disconnected" on new federation setups
6 participants