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

[Testnet] Deploy zksync on Cronos Testnet #37

Open
thomas-nguy opened this issue Aug 9, 2023 · 3 comments
Open

[Testnet] Deploy zksync on Cronos Testnet #37

thomas-nguy opened this issue Aug 9, 2023 · 3 comments
Assignees
Labels

Comments

@thomas-nguy
Copy link
Member

thomas-nguy commented Aug 9, 2023

Create a testnet using Cronos Testnet for L1

@thomas-nguy thomas-nguy changed the title [Testnet] Try deploy zksync on Cronos [Testnet] Deploy zksync on Cronos Aug 9, 2023
@thomas-nguy thomas-nguy changed the title [Testnet] Deploy zksync on Cronos [Testnet] Deploy zksync on Cronos Testnet Aug 9, 2023
@thomas-nguy
Copy link
Member Author

thomas-nguy commented Aug 11, 2023

some imcompabilty issues

WARN loop_iteration{previous_block=L1BlockNumber(11882229)}: zksync_core::eth_sender::eth_tx_manager: Error when sending new signed tx for tx 12, base_fee_per_gas 2746081131287, priority_fee_per_gas: 1200000001: Ethereum gateway Error Request to ethereum gateway failed: RPC error: Error { code: ServerError(-32000), message: "invalid nonce; got 86, expected 87: invalid sequence: invalid sequence", data: None } file="core/bin/zksync_core/src/eth_sender/eth_tx_manager.rs" line=217 column=17
2023-08-11T04:55:45.362800Z ERROR loop_iteration{previous_block=L1BlockNumber(11882230)}: zksync_core::eth_sender::eth_tx_manager: Predicted gas 1007000 lower than used gas 2000000 for tx PublishProofBlocksOnchain 11 file="core/bin/zksync_core/src/eth_sender/eth_tx_manager.rs" line=516 column=13

@crypto-matto
Copy link

Steps to deploy

  1. Checkout branch thomas/cronos-script
  2. Update submodules git submodule update
  3. Build binary ./bin/zk
  4. Initialize with ./bin/zk init --skip-submodules-checkout
  5. Update ./etc/env/dev.env
  • ETH_CLIENT_CHAIN_ID=338
  • ETH_CLIENT_WEB3_URL=https://testnet-archive.cronoslabs.com/v1/af61f825e9471167e9291efc30a9ab66
  1. Start zkSync node ./bin/zk server

Blockers

I'm experiencing the below blocker. Tried using a different RPC endpoint, but still failed:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: EthereumGateway(Rpc(Error { code: ServerError(-32000), message: "FeeHistory user block count 1024 higher than 100", data: None }))', /zksync-era/core/bin/zksync_core/src/l1_gas_price/singleton.rs:27:22

@thomas-nguy thomas-nguy self-assigned this Aug 16, 2023
@thomas-nguy
Copy link
Member Author

thomas-nguy commented Aug 16, 2023

@crypto-matto from your error, it seems it is caused to cronos rpc endpoint base_fee_history limitation which can only have a max block count value to 100

Can you modify the config or the code to make it works?

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

No branches or pull requests

2 participants