#!/usr/bin/python import socket import _thread import time import json from padra import padra import threading LenFunc = 4 padra = padra(LenFunc) NumberOfOracles = 3 listOfAll = [] def broadcast(): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) msg = bytes("Message: ",'utf-8') sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) sock.sendto(msg, ("255.255.255.255", 6666)) while 1: m = sock.recvfrom(1024) listOfAll.append(((m[1][0]),str(int(m[0])))) print(listOfAll) connectedOracles = [] def connection(): while len(listOfAll)