Skip to content

Commit

Permalink
Add defaults for ocr2 automation gas limit on eth mainnet and testnet (
Browse files Browse the repository at this point in the history
…#12590)

* Add defaults for ocr2 automation gas limit on eth mainnet and testnet

* regen docs

* fixes

* fix test
  • Loading branch information
infiloop2 authored Apr 3, 2024
1 parent 95050a9 commit dcc7dcc
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 9 deletions.
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/Ethereum_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ BatchSize = 25
# EIP-1559 does well on a smaller block history size
BlockHistorySize = 4
TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000
3 changes: 3 additions & 0 deletions core/chains/evm/config/toml/defaults/Ethereum_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ EIP1559DynamicFees = true
BatchSize = 25
BlockHistorySize = 4
TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'primary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'primary'
Expand Down
4 changes: 4 additions & 0 deletions core/web/resolver/testdata/config-multi-chain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ ChainID = '1'
FinalityDepth = 26
FinalityTagEnabled = false

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'primary'
WSURL = 'wss://web.socket/mainnet'
Expand Down
4 changes: 2 additions & 2 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ ObservationGracePeriod = '1s'

[OCR2]
[OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000
```

</p></details>
Expand Down Expand Up @@ -6029,7 +6029,7 @@ ObservationGracePeriod = '1s'

[OCR2]
[OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000
```

</p></details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'fake'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'fake'
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/disk-based-logging.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'fake'
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/invalid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'fake'
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/valid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ ObservationGracePeriod = '1s'

[EVM.OCR2]
[EVM.OCR2.Automation]
GasLimit = 5400000
GasLimit = 10500000

[[EVM.Nodes]]
Name = 'fake'
Expand Down

0 comments on commit dcc7dcc

Please sign in to comment.