async fn mark_state( states: &Arc<Mutex<HashMap<String, BlockState>>>, id: &str, state: BlockState, )