This folder contains tools for testing the chain locally in a similar fashion to run_nodes.sh
The contents are:
-
chainrunner- a Python package for running the chain locally on a single machine. Please check the docstrings inside the python source for API documentation. -
run_nodes.py- an example script showing how to use thechainrunnerpackage. It mimics the behavior ofrun_nodes.sh -
test_catch_up.py- a script simulating nodes disconnecting from the chain for couple sessions and then reconnecting. -
test_multiple_restarts.py- a script simulating repeated crash and recovery of a single validator within one session. -
rolling_update.ipynb- interactive testing tool for various scenarios of rolling update of the whole chain. Needs to be run via Jupyter (https://jupyter.org/). Please customize constants in the top cell before executing.