Function: removeBLSPublicKeyAfterWaitTime()
The function removes a BLS public key after the required wait time for a leave request has passed, without needing a signature.
Inputs
serviceNodeIDValidation: The
leaveRequestTimestampof_serviceNodescorresponding toserviceNodeIDmust not be zero, and the currentblock.timestampmust be at least 30 days past theleaveRequestTimestamp.Impact: The
serviceNodeIDis necessary to delete specific_serviceNodeandserviceNodeIDsdata.
Branches and code coverage (including function calls)
Intended branches
Negative behavior
Function call analysis
_removeBLSPublicKey(serviceNodeID, _serviceNodes[serviceNodeID].deposit) → serviceNodeDelete(serviceNodeID)External/Internal? Internal.
Argument control:
serviceNodeID.Impact: Deletes the specified data from
_serviceNodesandserviceNodeIDs— also removes the specified public key from_aggregatePubKey.
_removeBLSPublicKey(serviceNodeID, _serviceNodes[serviceNodeID].deposit) → updateBLSNonSignerThreshold()External/Internal? Internal.
Argument control:
serviceNodeID.Impact: Updates the number of signers that can be excluded from BLS signature aggregation.