pub fn start_consensus(
    node_config: &NodeConfig,
    network_sender: NetworkSender,
    network_receiver: NetworkReceivers,
    consensus_to_mempool_sender: Sender<ConsensusRequest>,
    state_sync_client: StateSyncClient,
    pos_ledger_db: Arc<dyn DbReader>,
    db_with_cache: Arc<CachedPosLedgerDB>,
    reconfig_events: Receiver<(), OnChainConfigPayload>,
    author: AccountAddress,
    tx_sender: Sender<(SignedTransaction, Sender<Result<SubmissionStatus>>)>,
    test_command_receiver: Receiver<TestCommand>,
    started_as_voter: bool
) -> (Runtime, Arc<PowHandler>, Arc<AtomicBool>, Arc<ConsensusDB>)
Expand description

Helper function to start consensus based on configuration and return the runtime