bnb-chain / opbnb

MIT License
405 stars 165 forks source link

Node cannot catch up #58

Closed blakelukas closed 1 year ago

blakelukas commented 1 year ago

Node cannot catch up with the current blocks testnet. It's consistently lagging behind by 40k blocks. We've tried using both a public node and our own node, and both are in sync. Here are the logs op-geth

INFO [09-26|17:26:06.288] Chain head was updated                   number=8,827,416 hash=f12d9c..b3a7a6 root=170f08..d592a0 elapsed="40.636µs"  age=12h44s
INFO [09-26|17:26:06.290] Starting work on payload                 id=0xaa2a7d0ae83f6633
INFO [09-26|17:26:06.291] Imported new potential chain segment     number=8,827,417 hash=f269ea..ce9d64 blocks=1 txs=1  mgas=0.047 elapsed="385.859µs" mgasps=121.581 age=12h43s    dirty=0.00B
INFO [09-26|17:26:06.291] Chain head was updated                   number=8,827,417 hash=f269ea..ce9d64 root=bc2bb0..888edc elapsed="38.091µs"  age=12h43s
INFO [09-26|17:26:09.381] Starting work on payload                 id=0x853096e536b8f776
INFO [09-26|17:26:09.383] Imported new potential chain segment     number=8,827,418 hash=28c3c0..778b4a blocks=1 txs=1  mgas=0.048 elapsed="480.795µs" mgasps=99.213  age=12h45s    dirty=0.00B
INFO [09-26|17:26:09.383] Chain head was updated                   number=8,827,418 hash=28c3c0..778b4a root=4bdea1..2a5bf3 elapsed="53.169µs"  age=12h45s
INFO [09-26|17:26:09.385] Starting work on payload                 id=0x239217e604fb7b67
INFO [09-26|17:26:09.386] Imported new potential chain segment     number=8,827,419 hash=ae24f8..83cbe9 blocks=1 txs=1  mgas=0.064 elapsed="384.857µs" mgasps=166.329 age=12h44s    dirty=0.00B
INFO [09-26|17:26:09.387] Chain head was updated                   number=8,827,419 hash=ae24f8..83cbe9 root=a028de..997257 elapsed="43.491µs"  age=12h44s
INFO [09-26|17:26:09.388] Starting work on payload                 id=0x1e8577b0c96f5ca7
INFO [09-26|17:26:09.390] Imported new potential chain segment     number=8,827,420 hash=21d33e..4f80d2 blocks=1 txs=1  mgas=0.047 elapsed="377.393µs" mgasps=124.308 age=12h43s    dirty=0.00B
INFO [09-26|17:26:09.390] Chain head was updated                   number=8,827,420 hash=21d33e..4f80d2 root=e3ba39..75a90f elapsed="45.645µs"  age=12h43s
INFO [09-26|17:26:12.263] Starting work on payload                 id=0xa427f63ec3cb1a56
INFO [09-26|17:26:12.265] Imported new potential chain segment     number=8,827,421 hash=988982..e5a191 blocks=1 txs=1  mgas=0.051 elapsed="501.984µs" mgasps=100.627 age=12h45s    dirty=0.00B
INFO [09-26|17:26:12.265] Chain head was updated                   number=8,827,421 hash=988982..e5a191 root=e07818..9894a4 elapsed="55.604µs"  age=12h45s
INFO [09-26|17:26:12.267] Starting work on payload                 id=0xee8a0746bc0ea6d5
INFO [09-26|17:26:12.268] Imported new potential chain segment     number=8,827,422 hash=65d17f..3f8abc blocks=1 txs=1  mgas=0.064 elapsed="398.151µs" mgasps=160.806 age=12h44s    dirty=0.00B
INFO [09-26|17:26:12.269] Chain head was updated                   number=8,827,422 hash=65d17f..3f8abc root=74d358..889eeb elapsed="41.697µs"  age=12h44s
INFO [09-26|17:26:12.270] Starting work on payload                 id=0x8f8c25713bd1ce41
INFO [09-26|17:26:12.271] Imported new potential chain segment     number=8,827,423 hash=d343ea..ac1b27 blocks=1 txs=1  mgas=0.047 elapsed="384.556µs" mgasps=122.024 age=12h43s    dirty=0.00B
INFO [09-26|17:26:12.272] Chain head was updated                   number=8,827,423 hash=d343ea..ac1b27 root=d845eb..28c5cd elapsed="41.627µs"  age=12h43s

op-node

t=2023-09-26T17:27:12+0000 lvl=warn msg="ignoring batch with mismatching parent hash" batch_index=0 batch_timestamp=1,695,705,990 parent_hash=0x2827c6a4be3bf71cda7ddde1dfbcceb5403b191aff572b5543a058b8a67fd987 batch_epoch=0x4aef52b4d9fd8ca6dbe16679d00ba08a1a0b8a905b3d2669c4487bfe1dbc000c:33669675 txs=8  current_safe_head=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a
t=2023-09-26T17:27:12+0000 lvl=warn msg="dropping batch"                         batch_timestamp=1,695,705,990 parent_hash=0x2827c6a4be3bf71cda7ddde1dfbcceb5403b191aff572b5543a058b8a67fd987 batch_epoch=0x4aef52b4d9fd8ca6dbe16679d00ba08a1a0b8a905b3d2669c4487bfe1dbc000c:33669675 txs=8  l2_safe_head=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 l2_safe_head_time=1,695,705,989
t=2023-09-26T17:27:12+0000 lvl=info msg="skipping unsafe payload, since it is older than safe head" safe=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 unsafe=0xe0976093b0310e9095287d59983f53d07d813de29ae8a6aa8dfd2ff4b4fc4410:8827482 payload=0xe0976093b0310e9095287d59983f53d07d813de29ae8a6aa8dfd2ff4b4fc4410:8827482
t=2023-09-26T17:27:12+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090 attempts=0
t=2023-09-26T17:27:12+0000 lvl=info msg="skipping unsafe payload, since it is older than safe head" safe=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 unsafe=0x2827c6a4be3bf71cda7ddde1dfbcceb5403b191aff572b5543a058b8a67fd987:8827483 payload=0x2827c6a4be3bf71cda7ddde1dfbcceb5403b191aff572b5543a058b8a67fd987:8827483
t=2023-09-26T17:27:12+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090 attempts=0
t=2023-09-26T17:27:12+0000 lvl=info msg="skipping unsafe payload, since it does not build onto the existing unsafe chain" safe=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 unsafe=0x649fbbc9bf827ea273f1db4f8c7b0398dc99d4f155c6479edaf3c6494717bcd9:8827484 payload=0x649fbbc9bf827ea273f1db4f8c7b0398dc99d4f155c6479edaf3c6494717bcd9:8827484
t=2023-09-26T17:27:12+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=33,684,091 origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:12+0000 lvl=dbug msg="Derivation process went idle"           progress=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:13+0000 lvl=dbug msg="validated block"                        result=ACCEPT from=16Uiu2HAmNuf1C5gVxMM3KFWFxXV5FPb6tE6p4fyf3hJmrjGm7kVA
t=2023-09-26T17:27:13+0000 lvl=info msg="Received signed execution payload from p2p" id=0x064819fa0b5ab76211c5a3a6c041f5b10c76d5e0c6ea74e824161dc136174462:8870727 peer=16Uiu2HAmNuf1C5gVxMM3KFWFxXV5FPb6tE6p4fyf3hJmrjGm7kVA
t=2023-09-26T17:27:13+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x064819fa0b5ab76211c5a3a6c041f5b10c76d5e0c6ea74e824161dc136174462:8870727
t=2023-09-26T17:27:13+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090 attempts=0
t=2023-09-26T17:27:13+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=33,684,091 origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:13+0000 lvl=dbug msg="Derivation process went idle"           progress=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:13+0000 lvl=dbug msg="peering tick"                           connected=4 advertised_udp=9003 advertised_tcp=9003 advertised_ip=<nil>
t=2023-09-26T17:27:13+0000 lvl=dbug msg="discovered peer"                        peer=16Uiu2HAmNuf1C5gVxMM3KFWFxXV5FPb6tE6p4fyf3hJmrjGm7kVA nodeID=827feb348b38e3d9b05cac4e46efb439ab504d11425431f4be5899685843fd3f addr=/ip4/18.176.219.164/tcp/9003
t=2023-09-26T17:27:14+0000 lvl=dbug msg="validated block"                        result=ACCEPT from=16Uiu2HAmNuf1C5gVxMM3KFWFxXV5FPb6tE6p4fyf3hJmrjGm7kVA
t=2023-09-26T17:27:14+0000 lvl=info msg="Received signed execution payload from p2p" id=0x6745a635da4eca65a591d057635d422c4c11e179a80374b28d02980c6beabc5a:8870728 peer=16Uiu2HAmNuf1C5gVxMM3KFWFxXV5FPb6tE6p4fyf3hJmrjGm7kVA
t=2023-09-26T17:27:14+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x6745a635da4eca65a591d057635d422c4c11e179a80374b28d02980c6beabc5a:8870728
t=2023-09-26T17:27:14+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090 attempts=0
t=2023-09-26T17:27:14+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=33,684,091 origin=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:14+0000 lvl=dbug msg="Derivation process went idle"           progress=0x54ee31e7ef5a439ccaf067617e0a4fba93bb875f15821ee2992a6609b76d2fec:33684090
t=2023-09-26T17:27:14+0000 lvl=dbug msg="requesting missing unsafe L2 block range" start=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 end=0x13abda5cd7b40981b511d9695e26a91908d0392f6d8abbb6464c97bbb81425f0:8827485 size=2
t=2023-09-26T17:27:14+0000 lvl=dbug msg="ignoring request to sync L2 range, timestamp is too old for p2p" start=0x902468751fd89328d9c77044ad79c8cb88b748cd27cedb5f771cb9a1e183d50a:8827483 end=0x13abda5cd7b40981b511d9695e26a91908d0392f6d8abbb6464c97bbb81425f0:8827485 start_time=1,695,705,989

Here's the configuration. op-geth

 "--datadir=/data",
  "--http",
  "--http.corsdomain=*",
  "--http.vhosts=*",
  "--http.addr=0.0.0.0",
  "--http.port=8545",
  "--http.api=eth,net,web3,txpool,debug",
  "--ws",
  "--ws.addr=0.0.0.0",
  "--ws.port=8546",
  "--ws.origins=*",
  "--syncmode=full",
  "--maxpeers=10",
  "--networkid=5611",
  "--authrpc.addr=0.0.0.0",
  "--authrpc.port=8551",
  "--authrpc.vhosts=*",
  "--gcmode=archive", 
  "--metrics",
  "--metrics.port=6060",
  "--metrics.addr=0.0.0.0",
  "--rollup.disabletxpoolgossip=true",
  "--rollup.sequencerhttp=https://opbnb-testnet-rpc.bnbchain.org",
  "--rpc.evmtimeout=600s",
  "--rpc.gascap=0",
  "--rpc.txfeecap=0",
  "--txlookuplimit=0",
  "--nodiscover",
  "--snapshot=false",

op-node

 "--l1.trustrpc",
  "--sequencer.l1-confs=15",
  "--verifier.l1-confs=15",
  "--l1.http-poll-interval=3s",
  "--l1.epoch-poll-interval=45s",
  "--l1.rpc-max-batch-size=20",
  "--rollup.config=/home/rollup.json",
  "--rpc.addr=0.0.0.0", 
  "--rpc.port=8546",
  "--p2p.sync.req-resp",
  "--p2p.listen.ip=0.0.0.0",
  "--p2p.listen.tcp=9003",
  "--p2p.listen.udp=9003",
  "--snapshotlog.file=./snapshot.log",
  "--p2p.priv.raw=694dd51c94a31f1550bb2e3cb5535b4bce495488ddfcbafa79af77999fd5d6d3",
  "--p2p.bootnodes=enr:-J24QGQBeMsXOaCCaLWtNFSfb2Gv50DjGOKToH2HUTAIn9yXImowlRoMDNuPNhSBZNQGCCE8eAl5O3dsONuuQp5Qix2GAYjB7KHSgmlkgnY0gmlwhDREiqaHb3BzdGFja4PrKwCJc2VjcDI1NmsxoQL4I9wpEVDcUb8bLWu6V8iPoN5w8E8q-GrS5WUCygYUQ4N0Y3CCIyuDdWRwgiMr",
  "--metrics.enabled",
  "--metrics.addr=0.0.0.0",
  "--metrics.port=7300",
  "--pprof.enabled",
  "--rpc.enable-admin",
  "--log.level=debug",

op-geth:v0.1.3,op-node:v0.1.3 What could be the issue?

deepcrazy commented 1 year ago

Hi there, Can you share some more logs of op-geth (around 100+ lines of logs) and also the output of following command:

  1. curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"optimism_syncStatus","params":[],"id":1}' \ http://localhost:8546 | jq .

And,

  1. Since how long have you been running the opbnb testnet node?
  2. What is the L1_RPC public RPC url you used? (Can you try changing to rpc another one from the list here: https://www.bnbchainlist.org/ once)
  3. What are your hardware specifications? (https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-testnet-node#hardware-requirements)
blakelukas commented 1 year ago

Hello! Yes, I've attached a file with the logs. Also, the cURL sample inside the container didn't work as expected, and the same goes for the original documentation. So, I don't have complete information yet. Maybe I mixed up the port or something else. It responds fine to standard requests.

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "the method optimism_syncStatus does not exist/is not available"
  }
}

logs.txt

deepcrazy commented 1 year ago

Hi there, Nice catch. It could be due to port mismatch as well. Please use same --ws.port as --http.port in op-geth startup command. I can see that you have different port over here:

image

Recommended is this:

image

I would recommend to cross-verify the commands being used as per here: https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-testnet-node#start-components. Use exactly the same commands once and see if it helps.

Also, seems like these following flags are missing too from your op-node startup command:

image

Recommended for this: https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-testnet-node#start-components

Once this is all done, then pls share the output of curl commands as per this section: https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-testnet-node#check-status 1.

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' http://localhost:8545

2.

curl -X POST -H "Content-Type: application/json" --data \
    '{"jsonrpc":"2.0","method":"optimism_syncStatus","params":[],"id":1}'  \
    http://localhost:8546 | jq .
blakelukas commented 1 year ago

Alright, everything's done. Sorry, at first, I didn't realize it was a request for the op-node. Here are the responses to your queries.

{"jsonrpc":"2.0","id":1,"result":"0x8bc9d3"}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "current_l1": {
      "hash": "0xeb6b036323ce3da53df7d708165cf114f2921c437dc8d74fa0ffbf1f99ddc78a",
      "number": 33781362,
      "parentHash": "0x4d04c51bd90db977869d5bcbde1254812a2b5a06d83fc5cc7e2de2cfe3e28cd1",
      "timestamp": 1696041127
    },
    "current_l1_finalized": {
      "hash": "0x0d496fc1852e0e26d3d412434ebc44dc90ff70d5fe2fcd4b22b87fa7f953215a",
      "number": 33795527,
      "parentHash": "0x11776a07dacdf0f8ee3c6d76988a3959e230b8c32dbd0b5db8e5b0480d41392d",
      "timestamp": 1696083622
    },
    "head_l1": {
      "hash": "0xe250dce401883da727bca3d872ace1ac01d2565c93234ba434573d64b86267ca",
      "number": 33795543,
      "parentHash": "0xb95490bc31194f1b1fb6f03150e5bd4f8a3b8c6c5c6e2802467fe70266367160",
      "timestamp": 1696083670
    },
    "safe_l1": {
      "hash": "0xe250dce401883da727bca3d872ace1ac01d2565c93234ba434573d64b86267ca",
      "number": 33795543,
      "parentHash": "0xb95490bc31194f1b1fb6f03150e5bd4f8a3b8c6c5c6e2802467fe70266367160",
      "timestamp": 1696083670
    },
    "finalized_l1": {
      "hash": "0x0d496fc1852e0e26d3d412434ebc44dc90ff70d5fe2fcd4b22b87fa7f953215a",
      "number": 33795527,
      "parentHash": "0x11776a07dacdf0f8ee3c6d76988a3959e230b8c32dbd0b5db8e5b0480d41392d",
      "timestamp": 1696083622
    },
    "unsafe_l2": {
      "hash": "0x381e2315d2061c332e4031018d0302a641078a290e2dfd3916b7aacce2083861",
      "number": 9161171,
      "parentHash": "0x6b41eee7a8a5c5c8b6d09f68d3de4752abfac2b2265dd3f0ca5a2a711aa2129c",
      "timestamp": 1696039677,
      "l1origin": {
        "hash": "0x26b7e00f86566780e2ec45b9eb5a7af6fc97213abcc61c4d7e9dc6210100d9dc",
        "number": 33780878
      },
      "sequenceNumber": 2
    },
    "safe_l2": {
      "hash": "0xffc0b74fa090821fd9be76a1ab62091b29fb97e6aeb8d3fefc3468633ccb0ff4",
      "number": 9161012,
      "parentHash": "0x3007689f385b785a2c21f08b10d55b7ba6c8c768a216c3df66e9fa5519aded74",
      "timestamp": 1696039518,
      "l1origin": {
        "hash": "0xa913832c724f4cafc98bf404de8ce77d4002a39501471695d62299d6863c565e",
        "number": 33780825
      },
      "sequenceNumber": 2
    },
    "finalized_l2": {
      "hash": "0xffc0b74fa090821fd9be76a1ab62091b29fb97e6aeb8d3fefc3468633ccb0ff4",
      "number": 9161012,
      "parentHash": "0x3007689f385b785a2c21f08b10d55b7ba6c8c768a216c3df66e9fa5519aded74",
      "timestamp": 1696039518,
      "l1origin": {
        "hash": "0xa913832c724f4cafc98bf404de8ce77d4002a39501471695d62299d6863c565e",
        "number": 33780825
      },
      "sequenceNumber": 2
    },
    "queued_unsafe_l2": {
      "hash": "0x58558e787c35bef179c9d5faa8fc754104da35d704856a303672d9b5f5abce80",
      "number": 9204547,
      "parentHash": "0xa8470b335b185dad5916cefa54e32ccb90f70724f4922b73bfe35f9d9fb6a629",
      "timestamp": 1696083053,
      "l1origin": {
        "hash": "0x6ee8932c62dc6e6d024e76c1568843155e4d23cc9871acfeb742628aaf929881",
        "number": 33795321
      },
      "sequenceNumber": 0
    }
  }
}
huihzhao commented 1 year ago

Could you put your op-geth and op-node configuration here? I did not see the L1 flags in your previous post.

blakelukas commented 1 year ago

Yes, of course. op-geth

              "--datadir=/data",
              "--verbosity=3",
              "--http",
              "--http.corsdomain=*",
              "--http.vhosts=*",
              "--http.addr=0.0.0.0",
              "--http.port=8545",
              "--http.api=net,eth,engine",
              "--ws",
              "--ws.addr=0.0.0.0",
              "--ws.port=8545",
              "--ws.origins=*",
              "--ws.api=eth,engine",
              "--syncmode=full",
              "--maxpeers=10",
              "--networkid=5611",
              "--miner.gaslimit=150000000",
              "--triesInMemory=32",
              "--txpool.globalslots=10000",
              "--txpool.globalqueue=5000",
              "--txpool.accountqueue=200",
              "--txpool.accountslots=200",
              "--cache=32000",
              "--cache.preimages",
              "--allow-insecure-unlock",
              "--authrpc.addr=0.0.0.0",
              "--authrpc.port=8551",
              "--authrpc.vhosts=*",
              "--gcmode=archive",
              "--metrics",
              "--metrics.port=6060",
              "--metrics.addr=0.0.0.0",
              "--rollup.sequencerhttp=https://opbnb-testnet-rpc.bnbchain.org",
              "--authrpc.jwtsecret=/local/jwtsecret"

op-node

              "--l1.trustrpc",
              "--sequencer.l1-confs=15",
              "--verifier.l1-confs=15",
              "--l1.http-poll-interval=3s",
              "--l1.epoch-poll-interval=45s",
              "--l1.rpc-max-batch-size=20",
              "--rollup.config=/home/rollup.json",
              "--rpc.addr=0.0.0.0",
              "--rpc.port=8546",
              "--p2p.sync.req-resp",
              "--p2p.listen.ip=0.0.0.0",
              "--p2p.listen.tcp=9003",
              "--p2p.listen.udp=9003",
              "--snapshotlog.file=./snapshot.log",
              "--p2p.priv.raw=694dd51c94a31f1550bb2e3cb5535b4bce495488ddfcbafa79af77999fd5d6d3",
              "--p2p.bootnodes=enr:-J24QGQBeMsXOaCCaLWtNFSfb2Gv50DjGOKToH2HUTAIn9yXImowlRoMDNuPNhSBZNQGCCE8eAl5O3dsONuuQp5Qix2GAYjB7KHSgmlkgnY0gmlwhDREiqaHb3BzdGFja4PrKwCJc2VjcDI1NmsxoQL4I9wpEVDcUb8bLWu6V8iPoN5w8E8q-GrS5WUCygYUQ4N0Y3CCIyuDdWRwgiMr",
              "--metrics.enabled",
              "--metrics.addr=0.0.0.0",
              "--metrics.port=7300",
              "--pprof.enabled",
              "--rpc.enable-admin",
              "--log.level=debug",
              "--l1=https://data-seed-prebsc-1-s1.binance.org:8545",
              "--l2=http://${NOMAD_UPSTREAM_ADDR_opbnb-ax52-host30-testnet-auth}",
              "--l2.jwt-secret=/local/jwtsecret"
ynvv commented 1 year ago

I have absolutely the same problem. Is there any solution here?

blakelukas commented 1 year ago

hm

bendanzhentan commented 1 year ago

@ynvv @blakelukas Sorry for the late reply.

There is a possibility that the node's chain has been forked and different with other nodes.

Would you please provide the following information, which will be very useful to locate the root cause:

  1. The OP Node's rollup config. You can retrieve rollup config via RPC call optimism_rollupConfig to OP Node, or the file rollup.config directly.

  2. Information about the blocks near the hard-fork height. There was a hard-fork happening at the height 5805494. Therefore, we can RPC call eth_getBlockByNumber(5805493), eth_getBlockByNumber(5805494) and eth_getBlockByNumber(5805495) to OP Geth to get the blocks info near the hard-fork height.

bendanzhentan commented 1 year ago

In the event that the chain is forked due to a hard fork, it is recommended to reset the blockchain and synchronize it with the latest version of the program:

  1. Clear the data directory in OP Geth

  2. Update the opbnb to latest version: git clone -b v0.2.1 git@github.com:bnb-chain/opbnb.git

  3. Update the op-geth to latest version: git clone -b v0.2.0 git@github.com:bnb-chain/op-geth.git

  4. Follow the instructions here to re-sync the testnet: https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-testnet-node . Just note that make sure to use the latest version of opbnb and op-geth, and use the new version genesis.json and rollup.json

Please let me know if you have any questions or encounter any problems.

cc @ynvv @deepcrazy