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

Feature: Add ability to run with mocked lightning network #215

Open
carlaKC opened this issue Jan 27, 2025 · 0 comments
Open

Feature: Add ability to run with mocked lightning network #215

carlaKC opened this issue Jan 27, 2025 · 0 comments
Labels
feature New feature or request

Comments

@carlaKC
Copy link
Contributor

carlaKC commented Jan 27, 2025

Depends on #214

As is: We have a fully "mocked" implementation of LightningNode in sim_node that just keeps track of channel state in memory to create very lightweight simulations, but it is not currently surfaced in sim-cli so there is no way for people to easily use it.

Motivation: This is a great feature to have for larger networks, so we should surface a way for people to use it.

To Be:
We need to update our sim params to add a new sim_network that specifies the channel policies of the network that we want simulated. This option is mutually exclusive with nodes, because we can't run real and fake nodes together.

I have a mega-branch that took a shot at this but I don't like the approach I took (and the branch is a mess). This commit is useful because it provides the json structure that I think that we should use.

Option to run sim-ln with then be:

  • nodes + activity: run defined activity on real nodes
  • nodes: run random activity on real nodes
  • sim_network + activity: run defined activity on fake nodes
  • sim_network: run random activity on fake nodes

(all else is invalid)

@carlaKC carlaKC added the feature New feature or request label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant