cronos-labs / cronos-zkevm

Apache License 2.0
8 stars 2 forks source link

[Testnet] Deploy zksync on Cronos Testnet #37

Open thomas-nguy opened 1 year ago

thomas-nguy commented 1 year ago

Create a testnet using Cronos Testnet for L1

thomas-nguy commented 1 year ago

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 commented 1 year ago

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
  6. 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 commented 1 year ago

@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?