From b335b7043994cefe75ed56e1ddb658c882655298 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Tue, 28 May 2024 11:41:22 +0700 Subject: [PATCH] feat(protocol): reduce ring-buffer size to reduce proposer cost (#17383) --- packages/protocol/contracts/L1/TaikoL1.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/protocol/contracts/L1/TaikoL1.sol b/packages/protocol/contracts/L1/TaikoL1.sol index 283c5217ec6..cf0843fb57c 100644 --- a/packages/protocol/contracts/L1/TaikoL1.sol +++ b/packages/protocol/contracts/L1/TaikoL1.sol @@ -212,13 +212,15 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors { chainId: LibNetwork.TAIKO, // Assume the block time is 3s, the protocol will allow ~90 days of // new blocks without any verification. - blockMaxProposals: 3_000_000, - blockRingBufferSize: 3_010_000, + blockMaxProposals: 432_000, // = 60*86400/12, 60 days, 12 seconds avg block time + blockRingBufferSize: 432_000 + 512, // Can be overridden by the tier config. maxBlocksToVerifyPerProposal: 10, // This value is set based on `gasTargetPerL1Block = 15_000_000 * 4` in TaikoL2. // We use 8x rather than 4x here to handle the scenario where the average number of // Taiko blocks proposed per Ethereum block is smaller than 1. + // There is 250_000 additional gas for the anchor tx. Therefore, on explorers, you'll + // read Taiko's gas limit to be 240_250_000. blockMaxGasLimit: 240_000_000, livenessBond: 250e18, // 250 Taiko token blockSyncThreshold: 16