Function: updateModel(string _modelCommitment)
This facilitates the update of a modeler.
Inputs
_modelCommitmentControl: Fully controlled by the caller.
Constraints: None.
Impact: The new model commitment of the modeler.
Branches and code coverage
Intended branches
Reset the
ipfsResponseof the modeler. Currently not performed.Assume that the competition is still ongoing. Currently not explicitly checked.
Assume that the
_modelCommitmentis different than the previous one. Currently not checked.Assume that the
_modelCommitmentis unique. Currently not checked.Update the
modelersmapping for the modeler.Update the
modelerChallengesmapping for the modeler.
Negative behavior
Should not call
modelers[msg.sender].medianPerformanceResults = 0;once again, as that is set to 0 a few lines above.Should not allow calling this while the contract is paused.
Should not allow a
topNModelerto update their model.Should not allow a modeler to update their model if they are not registered.