Algorithm 2. Task Confirmation Algorithm. |
Input Workers; Report Output Confirmed report 1: Request for confirmation to workers 2: Confirm or reject the report 3: if confirm = True then 4: return report confirmation; 5: end if 6: if NumberOfConfirmation > NumberOfWorkers/2 then 7: send report to blockchain; 8: return confirmed report; 9: end if |