Skip to content

Commit

Permalink
fix(protocol): Rm unused config (#13644)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com>
  • Loading branch information
cyberhorsey and dantaik authored Apr 25, 2023
1 parent 38497a5 commit 8ebd2ce
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion packages/protocol/contracts/L1/TaikoConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ library TaikoConfig {
// Two weeks if avg block time is 10 seconds
maxNumProposedBlocks: 120960,
ringBufferSize: 120960 + 10,
maxNumVerifiedBlocks: 4096,
// Each time one more block is verified, there will be ~20k
// more gas cost.
maxVerificationsPerTx: 10,
Expand Down
1 change: 0 additions & 1 deletion packages/protocol/contracts/L1/TaikoData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ library TaikoData {
uint256 chainId;
uint256 maxNumProposedBlocks;
uint256 ringBufferSize;
uint256 maxNumVerifiedBlocks;
// This number is calculated from maxNumProposedBlocks to make
// the 'the maximum value of the multiplier' close to 20.0
uint256 maxVerificationsPerTx;
Expand Down
1 change: 0 additions & 1 deletion packages/protocol/contracts/L1/libs/LibVerifying.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ library LibVerifying {
config.chainId <= 1 ||
config.maxNumProposedBlocks == 1 ||
config.ringBufferSize <= config.maxNumProposedBlocks + 1 ||
config.maxNumVerifiedBlocks == 0 ||
config.blockMaxGasLimit == 0 ||
config.maxTransactionsPerBlock == 0 ||
config.maxBytesPerTxList == 0 ||
Expand Down
7 changes: 1 addition & 6 deletions packages/relayer/TaikoL1.json
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,7 @@
},
{
"internalType": "uint256",
"name": "ringBufferSize",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxNumVerifiedBlocks",
"name": "maxVerificationsPerTx",
"type": "uint256"
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/contracts/taikol1/TaikoL1.go

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions packages/status-page/src/constants/abi/TaikoL1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,7 @@ export default [
},
{
internalType: "uint256",
name: "ringBufferSize",
type: "uint256",
},
{
internalType: "uint256",
name: "maxNumVerifiedBlocks",
name: "maxVerificationsPerTx",
type: "uint256",
},
{
Expand Down

0 comments on commit 8ebd2ce

Please sign in to comment.