Skip to content

Commit

Permalink
feat(protocol): reduce ring-buffer size to reduce proposer cost (#17383)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored May 28, 2024
1 parent 5236d0a commit b335b70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b335b70

Please sign in to comment.