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

Bind ELF to ProofData #1647

Open
wants to merge 26 commits into
base: nightly
Choose a base branch
from
Open

Bind ELF to ProofData #1647

wants to merge 26 commits into from

Conversation

jfldde
Copy link
Contributor

@jfldde jfldde commented Dec 24, 2024

Description

  • Bind ELF to ProofData. This is required when sequencer commitments are part of the same DA block but the later batches go above a fork height and multiple ELFs should be used.
  • Add tests for ELF switching

Linked Issues

@jfldde jfldde requested a review from eyusufatik as a code owner December 24, 2024 13:33
@auto-assign auto-assign bot requested a review from ercecan December 24, 2024 13:33
@jfldde jfldde marked this pull request as draft December 24, 2024 13:33
@eyusufatik eyusufatik marked this pull request as ready for review December 26, 2024 20:46
@auto-assign auto-assign bot requested a review from kpp December 26, 2024 20:46
Comment on lines 678 to 680
if let Err(e) = fork_manager.register_block(l2_height) {
panic!("Fork transition failed {}", e);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

.expect("fork transition failed")

Copy link
Contributor

@yaziciahmet yaziciahmet left a comment

Choose a reason for hiding this comment

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

Made a shallow review of the PR. Will review more throughly tomorrow

bin/citrea/src/main.rs Outdated Show resolved Hide resolved
Comment on lines +10 to +12
#[cfg(feature = "testing")]
pub static FORKS: OnceLock<&'static [Fork]> = OnceLock::new();

Copy link
Contributor

Choose a reason for hiding this comment

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

if this is made public for tests, then we can remove the not(testing) (testing) separation in the use_network_forks as it will no longer be used for testing

@@ -108,6 +108,7 @@ pub fn run_circuit<DaV: DaVerifier, G: ZkvmGuest>(
if let Ok(data) = data {
match data {
DaDataLightClient::Complete(proof) => {
// TODO: don't panic here, ignore if cant extract
Copy link
Contributor

Choose a reason for hiding this comment

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

todo

@@ -52,6 +54,10 @@ fn test_payable_contract_value() {

#[test]
fn test_tx_request_fields_gas_fork1() {
// override nightly FORKS
static OVERRIDE_FORKS: [Fork; 1] = [Fork::new(SpecId::Fork1, 0)];
FORKS.set(&OVERRIDE_FORKS).expect("couldnt set");
Copy link
Contributor

Choose a reason for hiding this comment

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

just unwrap

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.

Prover ELFs switch test
4 participants