Skip to content

Conversation

@elnosh
Copy link
Collaborator

@elnosh elnosh commented Jun 24, 2025

return SimNodes when creating a simulated network.

This required changing SimNode to not use any lifetimes because create_simulation_with_network will return a hashmap with the concrete SimNodes but internally pass them as dyn LightningNode for the Simulation.

@elnosh elnosh force-pushed the return-sim-nodes branch from 7b4d9e8 to d97b155 Compare June 24, 2025 18:35
Copy link
Contributor

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏁

fn list_nodes(&self) -> Vec<NodeInfo>;
}

type LdkNetworkGraph = NetworkGraph<Arc<WrappedLog>>;
Copy link
Contributor

@carlaKC carlaKC Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitty nit(for future): would have moved this refactor into its own commit for the change - single responsibility commits nice where we can get them

@carlaKC carlaKC merged commit 49d5ae4 into bitcoin-dev-project:main Jun 24, 2025
2 checks passed
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