lnresearch / topology

Data about the past and current structure of the Lightning Network
MIT License
83 stars 15 forks source link

Add the disable in nodes policy for more accuracy in directed graph #26

Open ta99i opened 1 month ago

ta99i commented 1 month ago
modified:   lntopo/parser.py
modified:   lntopo/timemachine.py

Added the disable attribute to the nodes policy data structure.
    The disable parameter is derived from the channel_flags field, specifically using bit position 1, as described in the BOLT 7 specification.
    This change allows for better representation of disabled or inactive channels in the directed graph, ensuring that the graph accurately reflects real-time network conditions.