Skip to content

Feature: Allow random and defined activity simulation #161

@carlaKC

Description

@carlaKC

Right now, the type of activity that we will simulate is determined by the sim-file:

  • activity specified: run the user-defined set of activities.
  • No activity: run random activity for all of the nodes provided.

We should allow users to specify both random and defined activity to support more complicated use cases, while still preserving the "easy start" nature of just being able to specify nodes for random activity.

Suggested Sim File Interpretation

Random Activity - All Nodes

sim.json:

nodes {
    A ...
    B ...
}

Action: run default random activity on A and B.

Defined Activity

sim.json:

nodes {
    A ...
    B ....
}
activity{
    A -> B 10 sats
}

Action: run only the defined activity specified between A and B.

Defined and Random Activity

sim.json:

nodes {
    A ...
    B ....
    C ....
}
activity{
    A -> B 10 sats
}
no_random{
    B
}

Action: run defined activity specified between A and B and random activity between A and C.

Rationale for no_random is that I think the likely use case is specifying a few specific activity flows and then wanting those nodes to be excluded from the random activity.

Eg: Running a jamming simulation

  • I want D and E to run a jamming attack.
  • I don't want D and E to send random payments.
  • I want all other nodes to be processing random payments, so I just set D and E in no_random.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions