Function subscribe_sync_blocks

Source
pub async fn subscribe_sync_blocks(
    explorer: Arc<Explorerd>,
    endpoint: Url,
    ex: Arc<Executor<'static>>,
) -> Result<(StoppableTaskPtr, StoppableTaskPtr)>
Expand description

Subscribes to darkfid’s JSON-RPC notification endpoint that serves new confirmed blocks. Upon receiving them, store them to the database.