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

If current version + 1 != waypoint.version(), return Ok(false) indicating skipping the txn. otherwise apply the txn and commit it if the result matches the waypoint. Returns Ok(true) if committed otherwise Err.