-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BCI-3842 custom timeouts for Hedera #13876
Conversation
…dTransaction, CallContext, etc.)
@@ -37,3 +39,11 @@ func NewEvmClient(cfg evmconfig.NodePool, chainCfg commonclient.ChainConfig, cli | |||
return NewChainClient(lggr, cfg.SelectionMode(), cfg.LeaseDuration(), chainCfg.NodeNoNewHeadsThreshold(), | |||
primaries, sendonlys, chainID, chainType, clientErrors, cfg.DeathDeclarationDelay()) | |||
} | |||
|
|||
func getRPCTimeouts(chainType chaintype.ChainType) (largePayload, defaultTimeout time.Duration) { | |||
if chaintype.ChainHedera == chainType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this strategy, isn't it more scalable, if we create 2 configs:
under ChainClient:
[ChainClient]
RPCTimeout = 10 seconds
LargeRPCTimeout = 10 seconds
Keep these default for all chains, except we set the LargeRPCTimeout = 30 for Hedera.
In future, updating these are just config changes not needing code fixes.
# Conflicts: # core/chains/evm/client/evm_client.go # core/chains/evm/client/helpers_test.go # core/chains/evm/client/rpc_client.go # core/chains/evm/client/rpc_client_test.go
2f84a7f
Quality Gate passedIssues Measures |
* allow to configure RPCTimeouts * Custom (30s) timeout for Hedera RPC requests with large payloads (SendTransaction, CallContext, etc.) * fix linter
## Motivation Cherry-pick of smartcontractkit/chainlink#14021 cherry-pick of smartcontractkit/chainlink#13957 cherry-pick of smartcontractkit/chainlink#13876 cherry-pick of smartcontractkit/chainlink#13907
* allow to configure RPCTimeouts * Custom (30s) timeout for Hedera RPC requests with large payloads (SendTransaction, CallContext, etc.) * fix linter
Added custom 30s timeout for Hedera
Ticket
Discussion