Skip to content

feat(gateways): support LNv2 gateway discovery and monitoring - #133

Open
sadeeqrabiu wants to merge 1 commit into
fedimint:masterfrom
sadeeqrabiu:feat/132-lnv2-gateway-support
Open

sadeeqrabiu wants to merge 1 commit into
fedimint:masterfrom
sadeeqrabiu:feat/132-lnv2-gateway-support

Conversation

@sadeeqrabiu

Copy link
Copy Markdown

Add discovery, probing, and monitoring for LNv2 gateways alongside existing LNv1 registrations:

  • Add fedimint-lnv2-common v0.12.0 dependency to workspace and server.
  • Introduce schema v11.sql with multi-protocol gateway support, protocol column, compound primary key, and lnv2_gateway_keys table.
  • Query LNv2 gateways consensus endpoint and probe routing_info with bounded timeout and concurrency.
  • Merge dual-protocol gateways when lightning node pubkey and normalized API URLs match.
  • Preserve backward-compatibility on /config/:invite/gateways via opt-in ?protocols=all query parameter.
  • Mirror new gateway types and status enums in fmo_api_types and frontend TypeScript definitions.

Closes #132
Ref: #132

Add discovery, probing, and monitoring for LNv2 gateways alongside
existing LNv1 registrations:
- Add `fedimint-lnv2-common` v0.12.0 dependency to workspace and server.
- Introduce schema `v11.sql` with multi-protocol gateway support,
  `protocol` column, compound primary key, and `lnv2_gateway_keys` table.
- Query LNv2 `gateways` consensus endpoint and probe `routing_info` with
  bounded timeout and concurrency.
- Merge dual-protocol gateways when lightning node pubkey and normalized
  API URLs match.
- Preserve backward-compatibility on `/config/:invite/gateways` via
  opt-in `?protocols=all` query parameter.
- Mirror new gateway types and status enums in `fmo_api_types` and
  frontend TypeScript definitions.

Closes fedimint#132
Ref: fedimint#132

This branch has not been deployed

No deployments
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.

Support LNv2 gateway discovery and activity

1 participant