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
serviceNodeID
Validation: The
leaveRequestTimestamp
of_serviceNodes
corresponding toserviceNodeID
must not be zero, and the currentblock.timestamp
must be at least 30 days past theleaveRequestTimestamp
.Impact: The
serviceNodeID
is necessary to delete specific_serviceNode
andserviceNodeIDs
data.
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
_serviceNodes
andserviceNodeIDs
— 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.