pd::network::generate

Function network_generate

Source
pub fn network_generate(
    network_dir: Option<PathBuf>,
    chain_id: &str,
    active_validator_limit: Option<u64>,
    tendermint_timeout_commit: Option<Timeout>,
    epoch_duration: Option<u64>,
    unbonding_delay: Option<u64>,
    peer_address_template: Option<String>,
    external_addresses: Vec<Address>,
    validators_input_file: Option<PathBuf>,
    allocations_input_file: Option<PathBuf>,
    allocation_address: Option<Address>,
    proposal_voting_blocks: Option<u64>,
    gas_price_simple: Option<u64>,
) -> Result<()>
Expand description

Create a new testnet definition, including genesis and at least one validator config. Write all configs to the target testnet dir, defaulting to ~/.penumbra/<chain_id>.