Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Sep 26, 2024
1 parent 54124c8 commit f4a9ac8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions packages/protocol/contracts/layer1/devnet/DevnetTierProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ contract DevnetTierProvider is TierProviderBase, ITierRouter {

/// @inheritdoc ITierProvider
function getTierIds() public pure override returns (uint16[] memory tiers_) {
tiers_ = new uint16[](3);
tiers_ = new uint16[](6);
tiers_[0] = LibTiers.TIER_OPTIMISTIC;
tiers_[1] = LibTiers.TIER_GUARDIAN_MINORITY;
tiers_[2] = LibTiers.TIER_GUARDIAN;
tiers_[1] = LibTiers.TIER_SGX;
tiers_[2] = LibTiers.TIER_ZKVM_RISC0;
tiers_[3] = LibTiers.TIER_GUARDIAN_MINORITY;
tiers_[4] = LibTiers.TIER_GUARDIAN;
tiers_[5] = LibTiers.TIER_ZKVM_SP1;
}

/// @inheritdoc ITierProvider
function getMinTier(address, uint256) public pure override returns (uint16) {
return LibTiers.TIER_OPTIMISTIC;
function getMinTier(address, uint256 _rand) public pure override returns (uint16) {
if (_rand % 4 == 0) {
return LibTiers.TIER_SGX;
} else {
return LibTiers.TIER_OPTIMISTIC;
}
}
}
2 changes: 1 addition & 1 deletion packages/protocol/contracts/layer2/based/TaikoL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ contract TaikoL2 is EssentialContract, IBlockHash {
}

function ontakeForkHeight() public pure virtual returns (uint64) {
return 0;
return 2;
}

/// @notice Calculates the basefee and the new gas excess value based on parent gas used and gas
Expand Down

0 comments on commit f4a9ac8

Please sign in to comment.