fuel_core_poa::service

Function new_service

source
pub fn new_service<T, B, I, P, S, PB, C>(
    last_block: &BlockHeader,
    config: Config,
    txpool: T,
    block_producer: B,
    block_importer: I,
    p2p_port: P,
    block_signer: S,
    predefined_blocks: PB,
    clock: C,
) -> Service<T, B, I, S, PB, C>
where T: TransactionPool + 'static, B: BlockProducer + 'static, I: BlockImporter + 'static, S: BlockSigner + 'static, PB: PredefinedBlocks + 'static, P: P2pPort, C: GetTime,