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 · 4 comments
Open

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

carlaKC opened this issue Jan 27, 2025 · 4 comments
Assignees
Labels
feature New feature or request High Priority

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
@chuksys
Copy link

chuksys commented Mar 8, 2025

I would like to get familiar with sim-ln by working on this.

@carlaKC
Copy link
Contributor Author

carlaKC commented Mar 8, 2025

I would like to get familiar with sim-ln by working on this.

I don't think that this is a great first issue to pick up, it's going to need a fair amount of refactoring that'll require familiarity with the project.

@chuksys
Copy link

chuksys commented Mar 8, 2025

Ok. I'll pick another issue then come back to this when I'm more familiar with the project.

@f3r10 f3r10 self-assigned this Mar 12, 2025
@f3r10
Copy link
Collaborator

f3r10 commented Mar 12, 2025

I am going to start working on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request High Priority
Projects
None yet
Development

No branches or pull requests

3 participants