pub async fn generate_block_templates<Mempool, State, ReadState, Tip, BlockVerifierRouter, SyncStatus, AddressBook>(
rpc: RpcImpl<Mempool, State, ReadState, Tip, AddressBook, BlockVerifierRouter, SyncStatus>,
template_sender: Sender<Option<Arc<Block>>>,
) -> Result<(), Report>where
Mempool: Service<Request, Response = Response, Error = BoxError> + Clone + Send + Sync + 'static,
Mempool::Future: Send,
State: Service<Request, Response = Response, Error = BoxError> + Clone + Send + Sync + 'static,
<State as Service<Request>>::Future: Send,
ReadState: Service<ReadRequest, Response = ReadResponse, Error = BoxError> + Clone + Send + Sync + 'static,
<ReadState as Service<ReadRequest>>::Future: Send,
Tip: ChainTip + Clone + Send + Sync + 'static,
BlockVerifierRouter: Service<Request, Response = Hash, Error = BoxError> + Clone + Send + Sync + 'static,
<BlockVerifierRouter as Service<Request>>::Future: Send,
SyncStatus: ChainSyncStatus + Clone + Send + Sync + 'static,
AddressBook: AddressBookPeers + Clone + Send + Sync + 'static,
Expand description
Generates block templates using rpc
, and sends them to mining threads using template_sender
.