Skip to content
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

Soft migration to Generalize Multinode client for EVM BCI-2286 #11369

Merged
merged 12 commits into from
Nov 28, 2023

Conversation

dhaidashenko
Copy link
Collaborator

  • Created feature flag that injects EVM client that is based on common/client/MultiNode

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

core/chains/evm/chain.go Outdated Show resolved Hide resolved
core/config/docs/core.toml Outdated Show resolved Hide resolved
docs/CONFIG.md Outdated Show resolved Hide resolved
@dhaidashenko dhaidashenko marked this pull request as ready for review November 23, 2023 12:17
dimriou
dimriou previously approved these changes Nov 23, 2023
# Conflicts:
#	core/chains/evm/client/chain_client.go
#	core/chains/evm/client/client.go
#	core/chains/evm/client/pool.go
#	core/chains/evm/client/send_only_node.go
@dhaidashenko dhaidashenko requested a review from dimriou November 28, 2023 12:25
jmank88
jmank88 previously approved these changes Nov 28, 2023
func newEthClientFromChain(cfg evmconfig.NodePool, noNewHeadsThreshold time.Duration, lggr logger.Logger, chainID *big.Int, chainType commonconfig.ChainType, nodes []*toml.Node) (evmclient.Client, error) {
var primaries []evmclient.Node
var sendonlys []evmclient.SendOnlyNode
func newEthClientFromCfg(cfg evmconfig.NodePool, noNewHeadsThreshold time.Duration, lggr logger.Logger, chainID *big.Int, chainType commonconfig.ChainType, nodes []*toml.Node) evmclient.Client {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why we renamed this method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method has no arguments with name or type chain (except chainID), so it felt weird to name it FromChain.
But I do not mind renaming it back to the newEthClientFromChain

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sounds reasonable

@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 72.2% 72.2% Coverage on New Code (is less than 75%)

See analysis details on SonarQube

@jmank88 jmank88 added this pull request to the merge queue Nov 28, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 28, 2023
@jmank88 jmank88 added this pull request to the merge queue Nov 28, 2023
Merged via the queue into develop with commit 25deefa Nov 28, 2023
87 of 88 checks passed
@jmank88 jmank88 deleted the feature/BCI-2286-multi-node-migration branch November 28, 2023 16:24
fbac pushed a commit that referenced this pull request Dec 14, 2023
* Allow switching to Generalized MultiNode EVM client via feature flag

* test how linter reacts to deprecation

* deprecate evm.client

* address review comments

* revert adding feature flag

* create new client

* fix call context

* unwrapp CallContext args

* deprecation msg improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants