Skip to content

Commit

Permalink
Additional CherryPick (#1593)
Browse files Browse the repository at this point in the history
## Motivation


## Solution

---------

Co-authored-by: nogo <[email protected]>
Co-authored-by: dimitris <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 386f02c commit 5611118
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
12 changes: 12 additions & 0 deletions ccip/config/evm/Hashkey_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ChainID = '177'
ChainType = 'optimismBedrock'
FinalityTagEnabled = true

[GasEstimator]
PriceMax = '1000 gwei'
LimitDefault = 8000000
FeeCapDefault = '1000 gwei'

[NodePool]
PollFailureThreshold = 2
PollInterval = '8s'
12 changes: 12 additions & 0 deletions ccip/config/evm/Hashkey_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ChainID = '133'
ChainType = 'optimismBedrock'
FinalityTagEnabled = true

[GasEstimator]
PriceMax = '1000 gwei'
LimitDefault = 8000000
FeeCapDefault = '1000 gwei'

[NodePool]
PollFailureThreshold = 2
PollInterval = '8s'
6 changes: 4 additions & 2 deletions core/services/ocr2/plugins/ccip/ccipexec/initializers.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ var (
// 5s for token data worker timeout is a reasonable default.
tokenDataWorkerTimeout = 5 * time.Second
// tokenDataWorkerNumWorkers is the number of workers that will be processing token data in parallel.
tokenDataWorkerNumWorkers = 5
tokenDataWorkerNumWorkers = 10
// expirationDur is the duration for which the token data will be cached.
expirationDurTokenData = 10 * time.Minute
)

var defaultNewReportingPluginRetryConfig = ccipdata.RetryConfig{
Expand Down Expand Up @@ -169,7 +171,7 @@ func NewExecServices(ctx context.Context, lggr logger.Logger, jb job.Job, srcPro
tokenDataProviders,
tokenDataWorkerNumWorkers,
tokenDataWorkerTimeout,
2*tokenDataWorkerTimeout,
expirationDurTokenData,
)

wrappedPluginFactory := NewExecutionReportingPluginFactory(ExecutionPluginStaticConfig{
Expand Down
2 changes: 1 addition & 1 deletion core/services/ocr2/plugins/ccip/tokendata/bgworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewBackgroundWorker(
return &BackgroundWorker{
tokenDataReaders: tokenDataReaders,
numWorkers: numWorkers,
jobsChan: make(chan cciptypes.EVM2EVMOnRampCCIPSendRequestedWithMeta, numWorkers*100),
jobsChan: make(chan cciptypes.EVM2EVMOnRampCCIPSendRequestedWithMeta, numWorkers*200),
resultsCache: cache.New(expirationDur, expirationDur/2),
timeoutDur: timeoutDur,

Expand Down

0 comments on commit 5611118

Please sign in to comment.