How the simulation is done

The following simulation structure was prepared for testing the Store protocol from nWaku. This structure will added to the Waku regresion tests that are done monthly with each version, allowing us to check the results of the store protocol in a more specific manner.

Simulation components:

Nwaku:

Other:

Procedure:

  1. Deploy all nWaku nodes and wait until the mesh is healthy. This means that all nodes have between d_low and d_high peers.
  2. Start publisher.
    1. For each message, the publisher will use the REST API of a random node to publish it.
  3. Once all messages are injected, a script will retrieve messages from a random store node.
  4. The simulation is finished.
  5. A script will analyze the logs of the nWaku nodes.
    1. It will be checked that ALL nodes received ALL messages.
    2. It will be checked that the messages retrieved by the store match those messages.
  6. Metrics are downloaded and analyzed.