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

feat(Validium): adapt protobuf_config tests for running both in Validium mode and Rollup mode #1275

Conversation

jordibonet-lambdaclass
Copy link
Contributor

What ❔

Adapt protobuf_config to take into account the mode you are running, Validium or Rollup, using L1BatchCommitDataGeneratorMode.

Why ❔

These changes are made in order to use the L1BatchCommitDataGeneratorMode (Rollup or Validium) in the implementation of the ProtoRepr trait for StateKeeper, in charge of converting it into a StateKeeperConfig.

Checklist

  • Update the functions read() and build() of protobuf_config for running both in Validium mode and Rollup mode.
  • Update testonly.rs to field l1_batch_commit_data_generator_mode with a random value of L1BatchCommitDataGeneratorMode for StateKeeperConfig.

Testing

zk test rust --package zksync_protobuf_config --lib -j 1 -- tests

@@ -498,7 +496,6 @@ impl RandomConfig for configs::eth_sender::GasAdjusterConfig {
internal_enforced_l1_gas_price: g.gen(),
poll_period: g.gen(),
max_l1_gas_price: g.gen(),
// TODO: this should depend on the mode (Validium or Rollup), but the tests are not adapted yet for this.
Copy link
Contributor

@ilitteri ilitteri Feb 28, 2024

Choose a reason for hiding this comment

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

This TODO was removed because this field will be later removed in #1238

@ilitteri ilitteri merged commit e5d19ec into matter-labs:feat_validium_pubdata_abstraction Feb 29, 2024
28 of 30 checks passed
@ilitteri ilitteri deleted the adapt-protobuf_config-tests branch February 29, 2024 14:34
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