Skip to content

Commit

Permalink
Using finality tags for Avalanche and Polygon instead of fixed finali…
Browse files Browse the repository at this point in the history
…ty (#307)
  • Loading branch information
mateusz-sekara authored Nov 22, 2023
1 parent 5a153f8 commit bc3953a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/chains/evm/config/toml/defaults/Avalanche_Fuji.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ChainID = '43113'
FinalityDepth = 1
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846'
LogPollInterval = '3s'
MinIncomingConfirmations = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ChainID = '43114'
FinalityDepth = 1
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0x5947BB275c521040051D82396192181b413227A3'
LogPollInterval = '3s'
MinIncomingConfirmations = 1
Expand Down
1 change: 1 addition & 0 deletions core/chains/evm/config/toml/defaults/Polygon_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ChainID = '137'
# It is quite common to see re-orgs on polygon go several hundred blocks deep. See: https://polygonscan.com/blocks_forked
FinalityDepth = 500
FinalityTagEnabled = true
LinkContractAddress = '0xb0897686c545045aFc77CF20eC7A532E3120E0F1'
LogPollInterval = '1s'
MinIncomingConfirmations = 5
Expand Down
1 change: 1 addition & 0 deletions core/chains/evm/config/toml/defaults/Polygon_Mumbai.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ChainID = '80001'
FinalityDepth = 500
FinalityTagEnabled = true
LinkContractAddress = '0x326C977E6efc84E512bB9C30f76E30c160eD06FB'
LogPollInterval = '1s'
MinIncomingConfirmations = 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 500
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0xb0897686c545045aFc77CF20eC7A532E3120E0F1'
LogBackfillBatchSize = 1000
LogPollInterval = '1s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 500
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0xb0897686c545045aFc77CF20eC7A532E3120E0F1'
LogBackfillBatchSize = 1000
LogPollInterval = '1s'
Expand Down
8 changes: 4 additions & 4 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2630,7 +2630,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 500
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0xb0897686c545045aFc77CF20eC7A532E3120E0F1'
LogBackfillBatchSize = 1000
LogPollInterval = '1s'
Expand Down Expand Up @@ -3893,7 +3893,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 1
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846'
LogBackfillBatchSize = 1000
LogPollInterval = '3s'
Expand Down Expand Up @@ -3972,7 +3972,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 1
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0x5947BB275c521040051D82396192181b413227A3'
LogBackfillBatchSize = 1000
LogPollInterval = '3s'
Expand Down Expand Up @@ -4365,7 +4365,7 @@ AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 500
FinalityTagEnabled = false
FinalityTagEnabled = true
LinkContractAddress = '0x326C977E6efc84E512bB9C30f76E30c160eD06FB'
LogBackfillBatchSize = 1000
LogPollInterval = '1s'
Expand Down

0 comments on commit bc3953a

Please sign in to comment.