Skip to content

Commit

Permalink
Undo remove ClientVersion from BlockchainParameters
Browse files Browse the repository at this point in the history
to keep the storage layout identical.
  • Loading branch information
karlb committed Jun 9, 2023
1 parent 486d819 commit 7816d93
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/protocol/contracts/governance/BlockchainParameters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import "../common/UsingPrecompiles.sol";
contract BlockchainParameters is Ownable, Initializable, UsingPrecompiles {
using SafeMath for uint256;

// obsolete
struct ClientVersion {
uint256 major;
uint256 minor;
uint256 patch;
}

struct LookbackWindow {
// Value for lookbackWindow before `nextValueActivationBlock`
uint256 oldValue;
Expand All @@ -20,6 +27,7 @@ contract BlockchainParameters is Ownable, Initializable, UsingPrecompiles {
uint256 nextValueActivationEpoch;
}

ClientVersion private minimumClientVersion; // obsolete
uint256 public blockGasLimit;
uint256 public intrinsicGasForAlternativeFeeCurrency;
LookbackWindow public uptimeLookbackWindow;
Expand Down Expand Up @@ -58,7 +66,7 @@ contract BlockchainParameters is Ownable, Initializable, UsingPrecompiles {
* @return Patch version of the contract.
*/
function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) {
return (2, 2, 0, 0);
return (1, 2, 0, 0);
}

/**
Expand Down

0 comments on commit 7816d93

Please sign in to comment.