Giter Club home page Giter Club logo

mantle-v2's Issues

Mantle Sepolia Stops Syncing - "Safe block not in canonical chain"

Summary

Mantle sepolia stops processing new blocks with warnings:

  • Safe block not in canonical chain
  • Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}

Logs

op-geth logs:

Jul 11 09:02:38 t-mantle-sepolia-02 geth[378456]: INFO [07-11|09:02:38.128] Looking for peers                        peercount=2 tried=339 static=0
Jul 11 09:02:41 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:41.749] Safe block not in canonical chain
Jul 11 09:02:41 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:41.749] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39725 duration="291.253µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:45 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:45.562] Safe block not in canonical chain
Jul 11 09:02:45 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:45.562] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39729 duration="291.483µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:48 t-mantle-sepolia-02 geth[378456]: INFO [07-11|09:02:48.181] Looking for peers                        peercount=2 tried=404 static=0
Jul 11 09:02:49 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:49.621] Safe block not in canonical chain
Jul 11 09:02:49 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:49.621] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39733 duration="406.948µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:53 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:53.553] Safe block not in canonical chain
Jul 11 09:02:53 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:53.554] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39737 duration="915.132µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:55 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:55.660] Safe block not in canonical chain
Jul 11 09:02:55 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:55.660] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39741 duration="269.662µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:58 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:58.107] Safe block not in canonical chain
Jul 11 09:02:58 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:02:58.107] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39745 duration="287.993µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"
Jul 11 09:02:58 t-mantle-sepolia-02 geth[378456]: INFO [07-11|09:02:58.203] Looking for peers                        peercount=2 tried=342 static=0
Jul 11 09:03:01 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:03:01.573] Safe block not in canonical chain
Jul 11 09:03:01 t-mantle-sepolia-02 geth[378456]: WARN [07-11|09:03:01.573] Served engine_forkchoiceUpdatedV1        conn=127.0.0.1:45482 reqid=39749 duration="272.833µs"  err="Invalid forkchoice state" errdata="{Error:safe block not in canonical chain}"

op-node logs:

Jul 11 09:03:07 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:07+0000 lvl=warn msg="Failed to share forkchoice-updated signal" state="&{HeadBlockHash:0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660 SafeBlockHash:0xd259b7bcfaa611336d48f7a797b04a9b82675279768f7e5576f515102b142e6e FinalizedBlockHash:0xf9f716a940d7f82e45f475353fbaefb38d006cf2a7f745854ef8ce681c9c87b2}" attr=<nil> err="Invalid forkchoice state"
Jul 11 09:03:07 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:07+0000 lvl=warn msg="Derivation pipeline is reset"           err="engine stage failed: reset: forkchoice update was inconsistent with engine, need reset to resolve: Invalid forkchoice state"
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Received signed execution payload from p2p" id=0xb056dae5bb2373865c5b451d7d9c54ea103856dff3383a2ed81f1f073fcd5205:9571958 peer=16Uiu2HAmKXpCW586g24LvFytdgexC6rTkzVrJr6C2JEoho8t5vgx
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0xb056dae5bb2373865c5b451d7d9c54ea103856dff3383a2ed81f1f073fcd5205:9571958
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="connected to peer"                      peer=16Uiu2HAmHC7FqenCYDaJr8H6yRMAt5e3NZRtf9uUFuwZz2FddP5M addr=/ip4/65.21.136.102/tcp/54644
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="disconnected from peer"                 peer=16Uiu2HAmHC7FqenCYDaJr8H6yRMAt5e3NZRtf9uUFuwZz2FddP5M addr=/ip4/65.21.136.102/tcp/54644
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="connected to peer"                      peer=16Uiu2HAm5KEMvvPuCtqs85HZW2JN5QpTWv6AEz8iMi1dULSw8Rzo addr=/ip4/83.150.2.27/tcp/37771
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Loaded current L2 heads"                unsafe=0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660:9555604 safe=0xbcf68bcbb400f2333efdcf3efcfa2ec957743783e07d9b059dc9e3d59024a10c:9525402 finalized=0xf9f716a940d7f82e45f475353fbaefb38d006cf2a7f745854ef8ce681c9c87b2:9525399 unsafe_origin=0x222c4ebaa9bab9fc909d4f8dbc51f967f5fc692c8a4578526609e1491cacf11c:6286263 safe_origin=0xe025a5fdb5821c681df156822a2260dd0bb39b6f3bc75472014550571e2946ec:6281664
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Walking back L1Block by number"         curr=0x222c4ebaa9bab9fc909d4f8dbc51f967f5fc692c8a4578526609e1491cacf11c:6286263 next=0x222c4ebaa9bab9fc909d4f8dbc51f967f5fc692c8a4578526609e1491cacf11c:6286263 l2block=0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660:9555604
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Found highest L2 block with canonical L1 origin. Skip further sanity check and jump to the safe head"
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Walking back L1Block by number"         curr=0xe025a5fdb5821c681df156822a2260dd0bb39b6f3bc75472014550571e2946ec:6281664 next=0xe025a5fdb5821c681df156822a2260dd0bb39b6f3bc75472014550571e2946ec:6281664 l2block=0xbcf68bcbb400f2333efdcf3efcfa2ec957743783e07d9b059dc9e3d59024a10c:9525402
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Sync progress"                          reason="reset derivation work"                l2_finalized=0xf9f716a940d7f82e45f475353fbaefb38d006cf2a7f745854ef8ce681c9c87b2:9525399 l2_safe=0xd259b7bcfaa611336d48f7a797b04a9b82675279768f7e5576f515102b142e6e:9525401 l2_unsafe=0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660:9555604 l2_engineSyncTarget=0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660:9555604 l2_time=1,720,655,881 l1_derived=0x5542e3f55c519eb3a4c8cd2fbdb9a13022ab3f947d00b8264dd48c43ee4e6d13:6281363
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="completed reset of derivation pipeline" origin=0x5542e3f55c519eb3a4c8cd2fbdb9a13022ab3f947d00b8264dd48c43ee4e6d13:6281363
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Derived by Eigenda da"                  EigenDaUpgradeHeight=9,525,400 safeL2Ref=0xd259b7bcfaa611336d48f7a797b04a9b82675279768f7e5576f515102b142e6e:9525401 l1InBoxBlock=0x5542e3f55c519eb3a4c8cd2fbdb9a13022ab3f947d00b8264dd48c43ee4e6d13:6281363
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="get data from eigenda"                  size=0    blobHashes=[]
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="Reset of L1Retrieval done"              origin=0x5542e3f55c519eb3a4c8cd2fbdb9a13022ab3f947d00b8264dd48c43ee4e6d13:6281363
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=warn msg="Failed to share forkchoice-updated signal" state="&{HeadBlockHash:0x7cba2637a0465e0f3b397565a0afd6b0309a2b941d7dc43ba14e8e13b1761660 SafeBlockHash:0xd259b7bcfaa611336d48f7a797b04a9b82675279768f7e5576f515102b142e6e FinalizedBlockHash:0xf9f716a940d7f82e45f475353fbaefb38d006cf2a7f745854ef8ce681c9c87b2}" attr=<nil> err="Invalid forkchoice state"
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=warn msg="Derivation pipeline is reset"           err="engine stage failed: reset: forkchoice update was inconsistent with engine, need reset to resolve: Invalid forkchoice state"
Jul 11 09:03:09 t-mantle-sepolia-02 op-node[378507]: t=2024-07-11T09:03:09+0000 lvl=info msg="disconnected from peer"                 peer=16Uiu2HAm5KEMvvPuCtqs85HZW2JN5QpTWv6AEz8iMi1dULSw8Rzo addr=/ip4/83.150.2.27/tcp/37771

CLI

op-geth:

/usr/local/bin/geth \
    --datadir=/var/lib/mantle/data/execution \
    --networkid=5003 \
    --nat=extip:0.0.0.0 \
    --syncmode=full \
    --gcmode=archive \
    --rollup.sequencerhttp=https://rpc.sepolia.mantle.xyz \
    --rpc.allow-unprotected-txs \
    --http \
    --http.addr=0.0.0.0 \
    --http.port=8545 \
    --http.corsdomain="*" \
    --http.vhosts="*" \
    --http.api=eth,web3 \
    --ws \
    --ws.addr=0.0.0.0 \
    --ws.port=8546 \
    --ws.origins="*" \
    --ws.api=eth,web3 \
# Engine API is meant only for communication between the Execution client and
# the Consensus client, both of which live in the same node.
    --authrpc.addr=127.0.0.1 \
    --authrpc.vhosts="*" \
    --authrpc.port=8551 \
    --authrpc.jwtsecret=/var/lib/mantle/jwt.hex \
    --metrics \
    --metrics.addr=0.0.0.0 \
    --metrics.port=9001 \
    --snapshot=false \
    --verbosity=3

op-node:

/usr/local/bin/op-node \
    --l1=http://t-eth-sepolia:8545 \
    --l2=http://127.0.0.1:8551 \
    --l2.jwt-secret=/var/lib/mantle/jwt.hex \
    --l2.backup-unsafe-sync-rpc=https://rpc.sepolia.mantle.xyz \
    --l2.engine-sync=true \
    --l2.skip-sync-start-check=true \
    --rollup.config=/var/lib/mantle/data/consensus/rollup.json \
    --rpc.addr=0.0.0.0 \
    --rpc.port=9545 \
# Read the hex-encoded 32-byte private key for the peer ID from this txt file.
# Created if not already exists. Important to persist to keep the same network identity after restarting, maintaining the previous advertised identity.
    --p2p.priv.path=/var/lib/mantle/data/consensus/priv.key \
# The port to listen on for p2p connections.
# UDP port defaults to be the same as TCP port, but specifying the port is a good idea.
# Both UDP and TCP ports will be advertised to other nodes, so they should be open to the public.
    --p2p.listen.tcp=30304 \
    --p2p.listen.udp=30304 \
    --p2p.peerstore.path=/var/lib/mantle/data/consensus/peerstore \
    --p2p.discovery.path=/var/lib/mantle/data/consensus/discovery \
    --p2p.static=/ip4/18.139.118.7/tcp/9003/p2p/16Uiu2HAkywYkvLRUH2MXbD6tSoT3jSMAzTWTp1aDijxpXQXxG6VM \
    --p2p.listen.ip=0.0.0.0 \
    --da.indexer-enable=true \
    --da.indexer-socket=da-indexer-api.sepolia.mantle.xyz:80 \
# Enable metrics.
    --metrics.enabled=true \
# Metrics listen on all interfaces by default, but specifying the address is a good idea.
    --metrics.addr=0.0.0.0 \
    --metrics.port=9002

Versions

  • op-geth: "v1.0.1"
  • op-node: "v1.0.1"

Can't run coverage test, compile error

In mantle-v2/packages/contracts-bedrock, run

 yarn coverage:lcov

I encountered this following error:

yarn run v1.22.19
$ yarn build:differential && yarn build:fuzz && forge coverage --report lcov
$ go build -o ./scripts/differential-testing/differential-testing ./scripts/differential-testing
$ (cd test-case-generator && go build ./cmd/fuzz.go)
cmd/fuzz.go:7:2: no required module provides package github.com/ethereum-optimism/optimism/packages/contracts-bedrock/ctb-test-case-generator/trie; to add it:
        go get github.com/ethereum-optimism/optimism/packages/contracts-bedrock/ctb-test-case-generator/trie
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

There are somethings wrong here:

randTrie := trie.NewEmpty(trie.NewDatabase(memdb))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.