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

'era_test_node fork testnet' gives Version14 error #109

Closed
deanpress opened this issue Sep 8, 2023 · 11 comments
Closed

'era_test_node fork testnet' gives Version14 error #109

deanpress opened this issue Sep 8, 2023 · 11 comments
Assignees
Labels
bug 🐛 Something isn't working challenging 🏴‍☠️ Indicates a difficult item p1 🟠 Indicates high priority item

Comments

@deanpress
Copy link

🐛 Bug Report for zkSync Era In-Memory Node

📝 Description

Following the installation instructions and then running era_test_node fork testnet results in the following error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseError(Error("unknown variant `Version14`, expected one of 
`Version0`, `Version1`, `Version2`, `Version3`, `Version4`, `Version5`, `Version6`, `Version7`, `Version8`, `Version9`, `Version10`, `Version11`, `Version12`, `Version13`", line: 1, column: 641))', src/fork.rs:237:14

🔄 Reproduction Steps

  1. Step 1: fresh install of in-memory node
  2. Step 2: run era_test_node fork testnet

🖥️ Environment

  • Rust version: 1.72.0
  • Operating System & Version: Ubuntu 20.04 (WSL)
@MexicanAce
Copy link
Collaborator

Confirmed this is an issue, but unfortunately the only solution is to either pass in a specific block head to fork from (ex: --fork-at 7000000) or wait until the upstream zksync-era repo has been updated with the latest Version14.

@MexicanAce MexicanAce added bug 🐛 Something isn't working p1 🟠 Indicates high priority item challenging 🏴‍☠️ Indicates a difficult item labels Sep 13, 2023
@artemmartyhin
Copy link

artemmartyhin commented Sep 14, 2023

Confirmed this is an issue, but unfortunately the only solution is to either pass in a specific block head to fork from (ex: --fork-at 7000000) or wait until the upstream zksync-era repo has been updated with the latest Version14.

Such approach causes the same result with Version14
era_test_node fork mainnet --fork-at 13800000

@nbaztec
Copy link
Contributor

nbaztec commented Sep 14, 2023

The cutoff seems to the block 13234790. Anything above it will fail.

@AaronNan24
Copy link

any updates or fix on this?

@MexicanAce
Copy link
Collaborator

@AaronNan24 We're still waiting on an upstream change to be pushed to zksync-era. Once that's merged, this PR should address the problem: #111

@AaronNan24
Copy link

Thx ur efforts! @MexicanAce

Would like to know how to use it ahead of time, can I build it locally to use? or is there any way to replay an existing transaction. I did use zkcast, but it also had problems, so I failed

wanted to look at the existing transactions to troubleshoot the code issue, thank you very much for your generous assistance!

@MexicanAce
Copy link
Collaborator

Unfortunately there's no work around until zksync-era is updated with the latest code running in Testnet/Mainnet. This is expected to happen before the end of the week.

@AaronNan24
Copy link

appreciate ur quick reply and explanation! and thanks again for all your hard work and shoutout to you guys

@MexicanAce
Copy link
Collaborator

This has been resolved with the latest Release and #111

@AaronNan24
Copy link

Big thanks! @MexicanAce
btw, how to upgrade existing era_test_node you recommend

@MexicanAce
Copy link
Collaborator

Here's the latest release with the binaries: https://github.com/matter-labs/era-test-node/releases/latest

IAvecilla pushed a commit to lambdaclass/era-test-node that referenced this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working challenging 🏴‍☠️ Indicates a difficult item p1 🟠 Indicates high priority item
Projects
None yet
Development

No branches or pull requests

6 participants