You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// @dev The expiry timestamp after which updates are not allowed.
13
+
/// Note: updates also aren't allowed after the _activationEpoch.
12
14
uint64privateimmutable _expiry;
13
15
14
-
/// @dev The block number at which the parameters become active.
16
+
/// @dev The block number at which the parameters become active,
17
+
/// and no further updates to _manifestData are accepted.
15
18
uint64private _activationEpoch;
16
19
17
20
/// @dev The data associated with the manifest for the parameters.
21
+
/// It is up to consumers (e.g., Lotus) to parse this data and be defensive in what they allowed be mutated as a result.
18
22
bytesprivate _manifesetData;
19
23
20
24
/// @notice Initializes the contract with the owner and expiry block number.
@@ -81,10 +85,10 @@ contract F3Parameters is Ownable {
81
85
revertUpdateAlreadyActive();
82
86
}
83
87
if (activationEpoch <=block.number) {
84
-
revertUpdateActivationEpochInvalid(uint64(block.number), activationEpoch, "before current block");
88
+
revertUpdateActivationEpochInvalid(uint64(block.number), activationEpoch, "activationEpoch is before current block");
85
89
}
86
90
if (uint128(activationEpoch -block.number) < MIN_ACTIVATION_HEADROOM_BLOCKS) {
87
-
revertUpdateActivationEpochInvalid(uint64(block.number), activationEpoch, "based on block time");
91
+
revertUpdateActivationEpochInvalid(uint64(block.number), activationEpoch, "activationEpoch is within minActivationHeadroomBlocks from the current block");
0 commit comments