MetisProtocol / metis-ansible

4 stars 2 forks source link

execution reverted for GetTxSequencer & HandleSyncFromOther applyTransaction #4

Closed Zorato closed 3 months ago

Zorato commented 3 months ago

Got panic: Refund counter below zero (gas: 4800 > refund: 0) error. Fixed by adding --cache.noprefetch=true. The node is syncing again, but logs are full with

ERROR[06-18|10:57:30.124] Get sequencer error when GetEpochByBlock err="execution reverted"
ERROR[06-18|10:57:30.124] GetTxSequencer                           err="execution reverted"
ERROR[06-18|10:57:30.124] HandleSyncFromOther applyTransaction     tx=6072d7…85e97a err="execution reverted"

l2geth version 0.2.4

Running node natively without docker, L1DTL runs in docker (yet).

export NO_USB=true
export IPC_DISABLE=false
export MAX_PEER=150
export DATADIR=/home/blockchain/metis-mainnet/l2geth/chaindata
export LOCAL_L2_CLIENT_HTTP=http://my-eth-node:8546

export USING_OVM=true
export CHAIN_ID=1088
export NETWORK_ID=1088
export TARGET_GAS_LIMIT=1100000000

export GCMODE=archive
export ETH1_CTC_DEPLOYMENT_HEIGHT=13626959
export ETH1_SYNC_SERVICE_ENABLE=false

export ROLLUP_BACKEND=l1
export ROLLUP_DISABLE_TRANSFERS=false
export ROLLUP_ENABLE_L2_GAS_POLLING=false
export ROLLUP_MAX_CALLDATA_SIZE=40000
export ROLLUP_SYNC_SERVICE_ENABLE=true
export ROLLUP_POLL_INTERVAL_FLAG=100ms

# for geth.sh
export ROLLUP_STATE_DUMP_PATH=https://metisprotocol.github.io/metis-networks/andromeda-mainnet/state-dump.latest.json
export BLOCK_SIGNER_KEY=6587ae678cf4fc9a33000cdbf9f35226b71dcc6a4684a31203241f9bcfd55d27
export BLOCK_SIGNER_ADDRESS=0x00000398232E2064F896018496b4b44b3D62751F
export ROLLUP_CLIENT_HTTP=http://127.0.0.1:7878

export RPC_ADDR=0.0.0.0
export RPC_API=eth,rollupbridge,web3,debug
export RPC_CORS_DOMAIN=*
export RPC_ENABLE=true
export RPC_PORT=8595
export RPC_VHOSTS=*
export RPC_GAS_CAP=11000000
export RPC_WRITE_TIMEOUT=5m
export USING_OVM=true
export WS_ADDR=0.0.0.0
export WS_API=eth,rollupbridge,web3,debug
export WS_ORIGINS=*
export WS=true

export SEQSET_VALID_HEIGHT=15214531
export DESEQBLOCK=16500000
export SEQSET_CONTRACT=0x0fe382b74C3894B65c10E5C12ae60Bbd8FAf5b48
export SEQ_BRIDGE_URL=https://andromeda.metis.io
export BOOTNODES=enode://61b617d2549296b0b950efcf8c1d87227d454d44362e642dde37d83092a445f2b6a6fd651d611b2893249d1e9d15c8f1d4b067142cff53280a08c9c7565c29e2@3.22.33.68:30303,enode://524e335aaa2a4555fe2d54f07fc34da83d80b0407d86c606b76ce918f96a348cf91947f7c60b0eabd29f68d2669cc0ced1360636daa53d0ccc948e154d0ce21e@3.129.121.37:30303,enode://c4cc213e3c5cb57b1ea6e1aa0b8a28240b03a5fa4b65ff08c53faf448182ae161d68c78fe48040da1e5d9087c6f19b60644605c4c2d78845627f09b90207e56c@3.17.198.212:30303

./geth \
 --datadir=$DATADIR \
 --password=$DATADIR/password \
 --allow-insecure-unlock \
 --unlock=$BLOCK_SIGNER_ADDRESS \
 --mine \
 --miner.etherbase=$BLOCK_SIGNER_ADDRESS \
 --bootnodes="${BOOTNODES}" \
 --wsport=28549 \
 --cache=4096 \
 --port=30309 \
 --syncmode full \
 --gcmode archive \
 --cache.noprefetch=true \
 --txpool.nolocals="1" 
Zorato commented 3 months ago

Using port 8595 for RPC & 28549 for ws, since I have other EVM chain node on the same machine.

ericlee42 commented 3 months ago

as said before.

You need to change the port.

ericlee42 commented 3 months ago

I have add FAQ to the README.

if you want to use 8595 instead, you can use the following env

RPC_PORT=8595
LOCAL_L2_CLIENT_HTTP=http://localhost:8595
Zorato commented 3 months ago

Thank you, that is much appreciated!