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

Eth2 showcase with log poller #11214

Merged
merged 16 commits into from
Nov 13, 2023
Merged

Eth2 showcase with log poller #11214

merged 16 commits into from
Nov 13, 2023

Conversation

Tofel
Copy link
Contributor

@Tofel Tofel commented Nov 7, 2023

Shows how to use new proposed Ethereum Network Builder using a log poller test. And how to make it backward compatible with existing tests that just use Geth with PoW.

@Tofel Tofel changed the base branch from develop to log_poller_streamline_on_demand November 7, 2023 18:41
Copy link
Contributor

github-actions bot commented Nov 8, 2023

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

Base automatically changed from log_poller_streamline_on_demand to develop November 8, 2023 16:19
func (te *CLClusterTestEnv) StartGeth() (blockchain.EVMNetwork, test_env.InternalDockerUrls, error) {
return te.Geth.StartContainer()
func (te *CLClusterTestEnv) StartEthereumNetwork(b *test_env.EthereumNetworkBuilder) (blockchain.EVMNetwork, test_env.RpcProvider, test_env.EthereumNetworkConfig, error) {
// if environment is being restored from a previous state, use the existing config
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this provision? is there any use case for it already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not yet, but I didn't want to break what we had there, because it allowed to re-use existing configuration (even if we never did it)

Geth GethConfig `json:"geth"`
MockAdapter MockAdapterConfig `json:"mock_adapter"`
ClCluster *ClCluster `json:"clCluster"`
Networks []string `json:"networks"`
Copy link
Contributor

Choose a reason for hiding this comment

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

should we change this to toml? in case in future we want to pass this from test input toml ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we should! but I think we need to move the CTF config first and then we can move product-specific test configs?

@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Tofel Tofel marked this pull request as ready for review November 13, 2023 13:52
@Tofel Tofel requested review from a team as code owners November 13, 2023 13:52
@skudasov skudasov changed the title [DO NOT MERGE] Eth2 showcase with log poller Eth2 showcase with log poller Nov 13, 2023
@skudasov skudasov added this pull request to the merge queue Nov 13, 2023
Merged via the queue into develop with commit 35e146f Nov 13, 2023
86 checks passed
@skudasov skudasov deleted the eth2_showcase_log_poller branch November 13, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants