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

Forwarding history - no matching #175

Merged
merged 10 commits into from
Feb 23, 2024
Merged

Forwarding history - no matching #175

merged 10 commits into from
Feb 23, 2024

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Feb 5, 2024

Synchronizes forwarding history and channels with the node. In intervals of 5 minutes.
For review, I think it's easiest to follow the commits, rather than going over the code at once.

The existing forwarding history sync was made with the idea that a single node would be running lspd and it only worked for LND. Since lspd can be run with multiple lightning nodes, the synchronization of forwards now works for both cln and lnd, and the node id is persisted with the forward.

The existing forwarding_history and channels tables are renamed with a _backup suffix. Since some information about channels from LND is no longer available on the node, it could be useful to keep this information. The synchronization will start again from the start of the node's lifetime the first time you run lspd.

InitialChannelId is renamed to AliasScid, because this better reflects what the field means.

Replaces #150 , but without matching forwards from different lightning nodes.

@JssDWt JssDWt force-pushed the forwarding-history-v3 branch 2 times, most recently from c8d631c to 3704782 Compare February 8, 2024 13:34
@JssDWt JssDWt marked this pull request as ready for review February 8, 2024 13:42
@JssDWt JssDWt merged commit 99f6a7e into master Feb 23, 2024
17 checks passed
@JssDWt JssDWt deleted the forwarding-history-v3 branch May 24, 2024 10:05
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.

2 participants