Skip to content

plugins.aea-test-autonomy.aea_test_autonomy.helpers.tendermint_utils

Helpers for Tendermint.

TendermintNodeInfo Objects

class TendermintNodeInfo()

Data class to store Tendermint node info.

__init__

def __init__(node_id: str, abci_port: int, rpc_port: int, p2p_port: int, home: Path)

Initialize Tendermint node info.

rpc_laddr

@property
def rpc_laddr() -> str

Get ith rpc_laddr.

get_http_addr

def get_http_addr(host: str) -> str

Get ith HTTP RCP address, given the host.

p2p_laddr

@property
def p2p_laddr() -> str

Get ith p2p_laddr.

TendermintLocalNetworkBuilder Objects

class TendermintLocalNetworkBuilder()

Build a local Tendermint network.

__init__

def __init__(nb_nodes: int, directory: Path, consensus_create_empty_blocks: bool = True) -> None

Initialize the builder.

get_p2p_seeds

def get_p2p_seeds() -> List[str]

Get p2p seeds.

get_command

def get_command(i: int) -> List[str]

Get command-line command for the ith process.

http_rpc_laddrs

@property
def http_rpc_laddrs() -> List[str]

Get HTTP RPC listening addresses.

BaseTendermintTestClass Objects

class BaseTendermintTestClass()

MixIn class for Pytest classes.

health_check

@staticmethod
def health_check(tendermint_net: TendermintLocalNetworkBuilder, **kwargs: Any) -> None

Do a health-check of the Tendermint network.

Back to top