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

timemachine: Add support for reconstruction/filtering of missing edges. #19

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

gfrebello
Copy link

@gfrebello gfrebello commented Mar 2, 2023

This PR implements optional correction of channels that only have data for one direction. It can be activated by setting parameter --fix_missing when building the graph, e.g.:

python -m lntopo timemachine restore --fmt=gml --fix_missing=<filter/recover> <gsp.bz2 path> <timestamp>

filter mode removes all channels for which a direction is missing. recover mode attempts to add the missing edges by retrieving data from the 1ML LN explorer. It removes channels for which no data is found. Both modes add a warning at the beginning of the output to inform how many channels were pruned. If no mode is set, the graph will build as in previous versions.

Closes #18.

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.

Clarification regarding channel attributes
1 participant