Skip to content

Feature Request: proposed integration of sim-ln in polar #829

@Extheoisah

Description

@Extheoisah

I am opening this issue to propose the integration of sim-ln in Polar for automated payment activity generation between running nodes.

The requirements to add sim-ln are:

  • Mount a volume containing macaroons and certs for each node
  • generate a config file that outlines node access and desired activity (this is done intuitively in the UI)
  • Pull the sim-ln image to run the simulation using the generated config and attached docker volume

The first step involves adding activity generation with user-defined payment flows. The simulator can also generate random activity based on the open channels.

I have started development of this feature in this branch and plan to open a draft pull request soon.

Below is the expected flow with screenshots of where development is ATM.

  1. The image below shows the addition of two buttons to give users the option to choose between the Network Designer (default) and the Activity Designer
Screenshot 2024-01-17 at 21 29 59
  1. When the activity designer button is clicked, you get an activity configuration designer UI (if you don't have existing activities) or a list of previously configured activities. Activities are tied to networks and cannot be used between different networks.
Screenshot 2024-01-17 at 21 29 00
  1. Here's another view of already activities. The plus icon allows you to duplicate the existing configuration after saving it. You can start the simulation using the start button and it will
    • create a docker volume with the saved activities,
    • create a simulation config
    • pull the sim-ln image (if not downloaded already) and run the simulation using the config
Screenshot 2024-01-17 at 21 32 48

Ideas and criticism are welcome. I hope this excites you as it does me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions