From cf74430c9550f8015989c1f9b41af533364f5e84 Mon Sep 17 00:00:00 2001 From: Lautaro Fernandez Date: Wed, 20 Nov 2024 16:14:00 -0300 Subject: [PATCH] BOB fixing finality depth in mainnet --- core/chains/evm/config/toml/defaults/BOB_Mainnet.toml | 8 ++++---- core/chains/evm/config/toml/defaults/BOB_Testnet.toml | 8 ++++---- docs/CONFIG.md | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/chains/evm/config/toml/defaults/BOB_Mainnet.toml b/core/chains/evm/config/toml/defaults/BOB_Mainnet.toml index 5197c88e76..9644c69198 100644 --- a/core/chains/evm/config/toml/defaults/BOB_Mainnet.toml +++ b/core/chains/evm/config/toml/defaults/BOB_Mainnet.toml @@ -1,13 +1,13 @@ ChainID = '60808' # OP stack https://docs.gobob.xyz/learn/introduction/stack-overview#rollup-layer ChainType = 'optimismBedrock' -# finality_depth was: ~850 -FinalityDepth = 900 +# FinalityDepth in mainnet showed more than 3k +FinalityDepth = 3150 # block_time was: 2s, adding 1 second buffer LogPollInterval = '3s' -# finality_depth * block_time / 60 secs = ~30 min (finality time) -NoNewFinalizedHeadsThreshold = '35m' +# finality_depth * block_time / 60 secs = ~105 min (finality time) +NoNewFinalizedHeadsThreshold = '110m' FinalityTagEnabled = true diff --git a/core/chains/evm/config/toml/defaults/BOB_Testnet.toml b/core/chains/evm/config/toml/defaults/BOB_Testnet.toml index 85abf5f560..f0d20f8c96 100644 --- a/core/chains/evm/config/toml/defaults/BOB_Testnet.toml +++ b/core/chains/evm/config/toml/defaults/BOB_Testnet.toml @@ -1,13 +1,13 @@ ChainID = '808813' # OP stack https://docs.gobob.xyz/learn/introduction/stack-overview#rollup-layer ChainType = 'optimismBedrock' -# finality_depth was: ~850 -FinalityDepth = 900 +# FinalityDepth in mainnet showed more than 3k +FinalityDepth = 3150 # block_time was: 2s, adding 1 second buffer LogPollInterval = '3s' -# finality_depth * block_time / 60 secs = ~30 min (finality time) -NoNewFinalizedHeadsThreshold = '35m' +# finality_depth * block_time / 60 secs = ~105 min (finality time) +NoNewFinalizedHeadsThreshold = '110m' FinalityTagEnabled = true diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 98d2ec5d34..82f11e87de 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -8368,7 +8368,7 @@ AutoCreateKey = true BlockBackfillDepth = 10 BlockBackfillSkip = false ChainType = 'optimismBedrock' -FinalityDepth = 900 +FinalityDepth = 3150 FinalityTagEnabled = true LogBackfillBatchSize = 1000 LogPollInterval = '3s' @@ -8383,7 +8383,7 @@ LogBroadcasterEnabled = true RPCDefaultBatchSize = 250 RPCBlockQueryDelay = 1 FinalizedBlockOffset = 0 -NoNewFinalizedHeadsThreshold = '35m0s' +NoNewFinalizedHeadsThreshold = '1h50m0s' [Transactions] ForwardersEnabled = false @@ -9712,7 +9712,7 @@ AutoCreateKey = true BlockBackfillDepth = 10 BlockBackfillSkip = false ChainType = 'optimismBedrock' -FinalityDepth = 900 +FinalityDepth = 3150 FinalityTagEnabled = true LogBackfillBatchSize = 1000 LogPollInterval = '3s' @@ -9727,7 +9727,7 @@ LogBroadcasterEnabled = true RPCDefaultBatchSize = 250 RPCBlockQueryDelay = 1 FinalizedBlockOffset = 0 -NoNewFinalizedHeadsThreshold = '35m0s' +NoNewFinalizedHeadsThreshold = '1h50m0s' [Transactions] ForwardersEnabled = false