Function: respondToOpTask(OpTask task, OpTaskResponse taskResponse, IBLSSignatureChecker.NonSignerStakesAndSignature nonSignerStakesAndSignature)
This function is for responding to the OpTask. The function will try to finalize the OpTask and mark it as completed.
Inputs
taskControl: Fully controlled by the caller.
Constraints: Must match the record in the contract.
Impact: The task to treat.
taskResponseControl: Fully controlled by the caller.
Constraints: Must have a valid
referenceTaskIndex.Impact: The response for the task.
nonSignerStakesAndSignatureControl: Fully controlled by the caller.
Constraints: Must be a valid signature.
Impact: The BLS signature--related information for the
initstage.
Branches and code coverage
Intended branches
Complete the given task with the
taskResponse.
Negative behavior
Revert when the improper
msg.sendercalls this function during theinitstage.Revert when the aggregator already responded to the expected task.