maybe_bootstrap

Function maybe_bootstrap 

Source
pub fn maybe_bootstrap(
    db: &DbReaderWriter,
    genesis_pivot_decision: Option<PivotBlockDecision>,
    initial_seed: Vec<u8>,
    initial_nodes: Vec<(NodeID, u64)>,
    initial_committee: Vec<(AccountAddress, u64)>,
) -> Result<bool>
Expand description

If the database has not been bootstrapped yet, commit the genesis transaction. Returns Ok(true) if committed, Ok(false) if already bootstrapped.