Playing with topology creation for waku-kurtosis integration
Go to file
0xFugue 6e96757d10 typer, json/toml, more network/node type, refactor 2022-12-29 21:34:01 +05:30
.gitignore json batch generation, kurtosis batch execution tools (#1) 2022-12-21 18:38:24 +05:30
Readme.md typer, json/toml, more network/node type, refactor 2022-12-29 21:34:01 +05:30
batch_gen.sh typer, json/toml, more network/node type, refactor 2022-12-29 21:34:01 +05:30
gen_jsons.sh json batch generation, kurtosis batch execution tools (#1) 2022-12-21 18:38:24 +05:30
generate_network.py typer, json/toml, more network/node type, refactor 2022-12-29 21:34:01 +05:30
main.star json batch generation, kurtosis batch execution tools (#1) 2022-12-21 18:38:24 +05:30
run_kurtosis_tests.sh json batch generation, kurtosis batch execution tools (#1) 2022-12-21 18:38:24 +05:30

Readme.md

This repo contains scripts to generate network models (in JSON) and waku configuration files (in TOMLs) for wakukurtosis runs.

generate_network.py

generate_network.py generates one network and per-node configuration files. The tool is configurable with specified number of nodes, topics, network types, node types. Use with Python3. Comment out the #draw(fname, H) line to visualise the generated graph.

usage: $./generate_network --help

batch_gen.sh

batch_gen.sh can generate given number of Waku networks and outputs them to a directory. Please make sure that the output directory does not exists; both relative and absolute paths work. The Wakunode parameters are generated at random; edit the MIN and MAX for finer control. The script requires bc & /dev/urandom.

usage: $./batch_gen.sh <#number of networks needed>