Skip to content

Commit

Permalink
Add FinalityTagBypass value
Browse files Browse the repository at this point in the history
  • Loading branch information
Madalosso committed Nov 8, 2024
1 parent 49c5f16 commit 8d911f7
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 14 deletions.
3 changes: 3 additions & 0 deletions ccip/config/evm/Mantle_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ MinIncomingConfirmations = 1

[HeadTracker]
HistoryDepth = 600
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false

[GasEstimator]
Mode = 'L2Suggested'
Expand Down
3 changes: 3 additions & 0 deletions ccip/config/evm/Polygon_Zkevm_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ BlockHistorySize = 12
[HeadTracker]
# Polygon suffers from a tremendous number of re-orgs, we need to set this to something very large to be conservative enough
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
3 changes: 3 additions & 0 deletions ccip/config/evm/XLayer_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ BlockHistorySize = 12

[HeadTracker]
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
15 changes: 9 additions & 6 deletions ccip/config/evm/zkSync_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
ChainID = '324'
ChainType = 'zksync'
# 1200block ~ 20min concurrent with the l1_committed tag
FinalityDepth = 1200
FinalityDepth = 1200
# block rate is ~2-5sec, so this ensures blocks are polled correctly
LogPollInterval = '5s'
# sufficient time for RPC to be labelled out of sync, since blockRate is pretty fast
NoNewHeadsThreshold = '1m'

[GasEstimator]
# no EIP1559 to ensure our estimator doesnot estimate gas with MaxPriorityFee which will break minFunding requirement
EIP1559DynamicFees = false
# high LimitDefault for worst case pubdata bytes with BatchGasLimit reduced to 4M in OCR2Config
# no EIP1559 to ensure our estimator doesnot estimate gas with MaxPriorityFee which will break minFunding requirement
EIP1559DynamicFees = false
# high LimitDefault for worst case pubdata bytes with BatchGasLimit reduced to 4M in OCR2Config
LimitDefault = 2_500_000_000
FeeCapDefault = '500 mwei'
PriceDefault = '25 mwei'
# p999 value for gasPrice based on historical data
PriceMax = '500 mwei'
# avg gasPrices are at 0.025 gwei
PriceMin = '25 mwei'
PriceMin = '25 mwei'

[GasEstimator.BlockHistory]
# increasing this to smooth out gas estimation
Expand All @@ -28,4 +28,7 @@ OracleType = 'zksync'

[HeadTracker]
# tracks top N blocks to keep in heads database table. Should store atleast the same # of blocks as finalityDepth
HistoryDepth = 1500
HistoryDepth = 1500
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/Mantle_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ MinIncomingConfirmations = 1

[HeadTracker]
HistoryDepth = 600
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false

[GasEstimator]
Mode = 'L2Suggested'
Expand Down
5 changes: 5 additions & 0 deletions core/chains/evm/config/toml/defaults/Metis_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ BlockHistorySize = 0

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ CacheTimeout = '4s'
[HeadTracker]
# Polygon suffers from a tremendous number of re-orgs, we need to set this to something very large to be conservative enough
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/XLayer_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ BlockHistorySize = 12

[HeadTracker]
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/Zircuit_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/Zircuit_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 2000
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
5 changes: 4 additions & 1 deletion core/chains/evm/config/toml/defaults/zkSync_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ OracleType = 'zksync'

[HeadTracker]
# tracks top N blocks to keep in heads database table. Should store atleast the same # of blocks as finalityDepth
HistoryDepth = 1500
HistoryDepth = 1500
# FinalityDepth > 1k => FinalityTagBypass = false
# https://chainlink-core.slack.com/archives/C07RA1B58CC/p1730983397689179?thread_ts=1730908333.814809&cid=C07RA1B58CC
FinalityTagBypass = false
14 changes: 7 additions & 7 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3802,7 +3802,7 @@ HistoryDepth = 2000
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -4543,7 +4543,7 @@ HistoryDepth = 1500
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -5276,7 +5276,7 @@ HistoryDepth = 2000
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -6117,7 +6117,7 @@ HistoryDepth = 600
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -7388,7 +7388,7 @@ HistoryDepth = 2000
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -7499,7 +7499,7 @@ HistoryDepth = 2000
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down Expand Up @@ -7912,7 +7912,7 @@ HistoryDepth = 100
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true
FinalityTagBypass = false
PersistenceEnabled = true

[NodePool]
Expand Down

0 comments on commit 8d911f7

Please sign in to comment.