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

Channel Resolution Reconstruction #25

Open
carlaKC opened this issue Apr 23, 2020 · 0 comments
Open

Channel Resolution Reconstruction #25

carlaKC opened this issue Apr 23, 2020 · 0 comments

Comments

@carlaKC
Copy link
Contributor

carlaKC commented Apr 23, 2020

The on chain transactions required to fully resolve a channel on chain will be persisted by lightningnetwork/lnd/4157. However, this data will only be present for channels that are closed after the node upgrades to a version of lnd running this change. This leaves many projects without tools to accurately account for previously closed channels.

Given a channel ID, examine the closing transaction (and subsequent transactions) on chain to determine the resolutions that occurred on chain. This will require a connection to a node with --txindex enabled.

  • Optionally allow faraday to connect directly to a node ()
  • Add ChannelResolutions endpoint which optimistically queries lnd
  • If no resolutions are persisted, and Faraday is connected to a node, get resolutions from chain
  • For first iteration, keep resolutions in memory; consider persisting further on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant