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.