Skip to content

autonomy.replay.tendermint

Script to build and run tendermint nodes from data dumps.

RanOutOfDumpsToReplay Objects

class RanOutOfDumpsToReplay(Exception)

Error to raise when we run out of dumps to replay.

TendermintRunner Objects

class TendermintRunner()

Run tednermint using the dump.

process

nosec

__init__

def __init__(node_id: int, dump_dir: Path, n_periods: int) -> None

Initialize object.

update_period

def update_period() -> None

Update period.

get_last_block_height

def get_last_block_height() -> int

Returns the last block height before dumping.

start

def start() -> None

Start tendermint process.

stop

def stop() -> None

Stop tendermint process.

TendermintNetwork Objects

class TendermintNetwork()

Tendermint network.

init

def init(dump_dir: Path) -> None

Initialize object.

update_period

def update_period(node_id: int) -> None

Update period for nth node.

get_last_block_height

def get_last_block_height(node_id: int) -> int

Returns last block height before dumping for node_id

stop_node

def stop_node(node_id: int) -> None

Stop a specific node.

start

def start() -> None

Start networks.

stop

def stop() -> None

Stop network.

run_until_interruption

def run_until_interruption() -> None

Run network until interruption.

build_tendermint_apps

def build_tendermint_apps() -> Tuple[Flask, TendermintNetwork]

Build flask app and tendermint network.