Skip to content

Expose NetworkGraph accessors - #293

Merged
tnull merged 2 commits into
lightningdevkit:mainfrom
tnull:2024-05-expose-network-graph
Jun 12, 2024
Merged

Expose NetworkGraph accessors#293
tnull merged 2 commits into
lightningdevkit:mainfrom
tnull:2024-05-expose-network-graph

Conversation

@tnull

@tnulltnull commented May 20, 2024

Copy link
Copy Markdown
Collaborator

Based on #281.
Based on #141.

Previously, we omitted exposing details for the sake of simplicity. However, querying the network graph has a lot of utility, and is also very useful for debugging purposes.

Here, we therefore give users access to the network graph, and expose slightly simplified versions of ChannelInfo/NodeInfo in bindings.

@tnulltnull mentioned this pull request May 20, 2024
19 tasks
@tnulltnull added this to the 0.3 milestone May 20, 2024
@tnull
tnullforce-pushed the 2024-05-expose-network-graph branch from 44596dc to cdc3622CompareJune 1, 2024 08:01
@tnull

tnull commented Jun 1, 2024

Copy link
Copy Markdown
CollaboratorAuthor

Rebased on #281 to resolve minor conflicts with main.

@tnull
tnullforce-pushed the 2024-05-expose-network-graph branch 2 times, most recently from 6f2d1ad to 862d7fdCompareJune 11, 2024 08:16
@tnull

tnull commented Jun 11, 2024

Copy link
Copy Markdown
CollaboratorAuthor

Rebased on top of main to reduce stack height and allow parallel review.

@tnull
tnull requested a review from arik-soJune 11, 2024 08:32
@tnull
tnullforce-pushed the 2024-05-expose-network-graph branch from 862d7fd to 350c3a9CompareJune 11, 2024 08:40
tnull added 2 commits June 11, 2024 20:52
.. as we're about to expose a new `NetworkGraph` wrapper type.
Previously, we omitted exposing details for the sake of simplicity.
However, querying the network graph has a lot of utility, and is also
very useful for debugging purposes.
Here, we therefore give users access to the network graph, and expose
slightly simplified versions of `ChannelInfo`/`NodeInfo` in bindings.
@tnull
tnullforce-pushed the 2024-05-expose-network-graph branch from 350c3a9 to 35e4968CompareJune 11, 2024 18:52
@tnull

Copy link
Copy Markdown
CollaboratorAuthor

Rebased on main to resolve minor conflict after #141 landed.

Comment threadsrc/graph.rs
@tnull
tnull merged commit 9c44041 into lightningdevkit:mainJun 12, 2024
Sign up for freeto 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

@tnull@arik-so