lightninglabs / lightninglabs/lndclient

add `BlockUntilServerActive`

Open
#266 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
57
Forks
50
PR merge metrics
No merged PRs in 30d

Description

We need to add `BlockUntilServerActive` to retry and wait until the node actually returns `SERVER_ACTIVE` from `GetState` before allowing the client to actually try and use lnd.

We also need to mention that doing so makes lndclient incompatible with lnd `v0.13` which doesn't support that.

@djkazic already has a plan to implement this fix, but creating an issue to track his resolution of it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the client’s existing retry and GetState handling. Implement BlockUntilServerActive so use of lnd waits until GetState returns SERVER_ACTIVE, then verify the issue’s compatibility requirement is documented for lnd versions before v0.14. Done means the wait behavior is covered and the lnd v0.13 incompatibility is clearly mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.