Both search_python and synthesis workers had a lot of duplicate code, these parts have now been moved within the node as a utility function. A TaskRequest struct has been added, which is the parsed form of TaskRequestPayload.
node.parse_messages parses a list of messages into list of task requests, eliminating those that have past deadline / invalid public keys.
node.send_task_result sends a task result to Waku, handling the payload creating and encryption and such.
Both
search_python
andsynthesis
workers had a lot of duplicate code, these parts have now been moved within thenode
as a utility function. ATaskRequest
struct has been added, which is the parsed form ofTaskRequestPayload
.node.parse_messages
parses a list of messages into list of task requests, eliminating those that have past deadline / invalid public keys.node.send_task_result
sends a task result to Waku, handling the payload creating and encryption and such.