a16z/magi

bug: magi will drop some batch data when it reaches 4089330 of L2 block height on optimism-sepolia network

Closed this issue · 1 comments

I started a magi and op-geth with optimism-sepolia network configs by docker-compose.

Here is my .env file configs blow:

NETWORK=optimism-sepolia

# should request a app key from alchemy
L1_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/<app_key>
L1_WS_RPC_URL=wss://eth-sepolia.g.alchemy.com/v2/<app_key>

JWT_SECRET=bf549f5188556ce0951048ef467ec93067bc4ea21acebe46ef675cd4e8e015ff

RPC_PORT=9545

EXECUTION_CLIENT=op-geth

EXECUTION_CLIENT_AUTH_RPC_PORT=8551

EXECUTION_CLIENT_RPC_PORT=8545

EXECUTION_CLIENT_WS_PORT=8546

SYNC_MODE=full

COMPOSE_PROJECT_NAME=$NETWORK
COMPOSE_PROFILES=magi,${EXECUTION_CLIENT}

After block height 4089329, the hashes of producted blocks are all difference with hash of same height block of optimism-sepolia:

[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089322 0x4eec6f7a80c9f350eb872c4d8a3fa5cae43a014cd465a869dadf20f2b94408b5
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089323 0x5fc4dbc32a4000f242a36592e9dc38fa00434667fdc70944a3de11626a10eea5
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089324 0xfb5d2542cae811c27419a5f4d185b83ab0a96bbf8c0b6b5e27889eb74fca398f
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089325 0xcf86bd6ef18bae9c6d6ae63754f07e926c5a152a96b512095df332c3aa7993de
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089326 0xf236e5d4093df5c67fbd0d712bfc3f9b10204aebea5f7e8cf2c69b82dbef10e6
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089327 0xa53c06bca11e7afd3208021675baac4bee1cbedf36e837c2f5538a62f9ca3a68
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089328 0xe75c7f7f25da03fffb5cf19698a451fc49c1d8978288498996a2158811407901
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089329 0x2ea5dc85c900443e6ee9615876a413ef3f7f800792886e646f03cae258e30dc4
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089330 0x1bcbd7f104f34254cad46fd9545d00c3a537689e606e106ae66f2b0a5ee63f85
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[33mWARN^[[0m: invalid parent hash
[^[[36mFri, 08 Dec 2023 08:48:09^[[0m] ^[[33mWARN^[[0m: dropping invalid batch
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089331 0x167ede8ab58924d5253e13b7a4af1e46fe00b3ed4bad5c2e603ef39139cff2bd
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: invalid parent hash
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: dropping invalid batch
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089332 0xaacdc545483f47a790d7a90223f1ede1e9ca8f0e76cd92a43a66102269f40e60
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: invalid parent hash
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: dropping invalid batch
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089333 0xea8481d31f9ff5725f55409aaff49d289f07d704a3dd8e8e56b89aa2b653c011
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: invalid parent hash
[^[[36mFri, 08 Dec 2023 09:00:12^[[0m] ^[[33mWARN^[[0m: dropping invalid batch
[^[[36mFri, 08 Dec 2023 09:00:13^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089334 0x9d0c3402fa4d17c9f0b538ef8d05928a0e6d202ddedccdfd2ea8b041284613b2
[^[[36mFri, 08 Dec 2023 09:00:13^[[0m] ^[[33mWARN^[[0m: invalid parent hash
[^[[36mFri, 08 Dec 2023 09:00:13^[[0m] ^[[33mWARN^[[0m: dropping invalid batch
[^[[36mFri, 08 Dec 2023 09:00:13^[[0m] ^[[34mINFO^[[0m: safe head updated: 4089335 0x743cf8112b4b091b989c9237de902f0db14c696bf604cdea385a43803ee7596c

Here is a part of op-geth's log blow:

INFO [12-08|08:48:09.223] Chain head was updated                   number=4,089,310 hash=935a8c..5fbde1 root=a5bd1a..35e8ad elapsed=1.688307ms age=3w2d15h
=4,089,315 hash=dd23bb..29a4bb root=d7df56..9c0497 elapsed=1.633385ms age=3w2d15h
INFO [12-08|08:48:09.288] Starting work on payload                 id=0x9811f21f7cc589ac
INFO [12-08|08:48:09.291] Imported new potential chain segment     number=4,089,316 hash=560331..40ea97 blocks=1 txs=1 mgas=0.064 elapsed=2.049ms    mgasps=31.210 age=3w2d15h triedirty=328.88KiB
INFO [12-08|08:48:09.293] Chain head was updated                   number=4,089,316 hash=560331..40ea97 root=f37508..2cb696 elapsed=1.515416ms age=3w2d15h
INFO [12-08|08:48:09.298] Starting work on payload                 id=0x2ce9466d3f49fea7
INFO [12-08|08:48:09.302] Imported new potential chain segment     number=4,089,317 hash=896253..8306bd blocks=1 txs=1 mgas=0.047 elapsed=1.998ms    mgasps=23.449 age=3w2d15h triedirty=332.86KiB
INFO [12-08|08:48:09.304] Chain head was updated                   number=4,089,317 hash=896253..8306bd root=aa6b9a..e7a2c6 elapsed=1.867919ms age=3w2d15h
INFO [12-08|08:48:09.310] Starting work on payload                 id=0xc39e0b905261496d
INFO [12-08|08:48:09.314] Imported new potential chain segment     number=4,089,318 hash=4b08aa..24f742 blocks=1 txs=1 mgas=0.047 elapsed=2.127ms    mgasps=22.021 age=3w2d15h triedirty=336.84KiB
INFO [12-08|08:48:09.316] Chain head was updated                   number=4,089,318 hash=4b08aa..24f742 root=eb69e7..7c2816 elapsed=1.609055ms age=3w2d15h
INFO [12-08|08:48:09.321] Starting work on payload                 id=0x8a50373a5929afd8
INFO [12-08|08:48:09.325] Imported new potential chain segment     number=4,089,319 hash=511f40..8d1703 blocks=1 txs=1 mgas=0.047 elapsed=1.931ms    mgasps=24.261 age=3w2d15h triedirty=340.82KiB
INFO [12-08|08:48:09.327] Chain head was updated                   number=4,089,319 hash=511f40..8d1703 root=bf64e2..ca591d elapsed=1.795904ms age=3w2d15h
INFO [12-08|08:48:09.332] Starting work on payload                 id=0x62b22c37ea5f40d7
INFO [12-08|08:48:09.336]
=3w2d15h
INFO [12-08|08:48:09.391] Starting work on payload                 id=0xcbd7fac2c7cf1319
INFO [12-08|08:48:09.394] Imported new potential chain segment     number=4,089,325 hash=cf86bd..7993de blocks=1 txs=1 mgas=0.047 elapsed=1.930ms    mgasps=24.275 age=3w2d15h triedirty=365.03KiB
INFO [12-08|08:48:09.396] Chain head was updated                   number=4,089,325 hash=cf86bd..7993de root=6575fb..835188 elapsed=1.484628ms age=3w2d15h
INFO [12-08|08:48:09.401] Starting work on payload                 id=0xb1433d935a065594
INFO [12-08|08:48:09.405] Imported new potential chain segment     number=4,089,326 hash=f236e5..ef10e6 blocks=1 txs=1 mgas=0.047 elapsed=2.268ms    mgasps=20.651 age=3w2d15h triedirty=369.01KiB
INFO [12-08|08:48:09.407] Chain head was updated                   number=4,089,326 hash=f236e5..ef10e6 root=4c9489..27f79a elapsed=1.647392ms age=3w2d15h
INFO [12-08|08:48:09.414] Starting work on payload                 id=0x88d75e5f6ae3b532
INFO [12-08|08:48:09.418] Imported new potential chain segment     number=4,089,327 hash=a53c06..ca3a68 blocks=1 txs=1 mgas=0.050 elapsed=2.223ms    mgasps=22.686 age=3w2d15h triedirty=373.50KiB
INFO [12-08|08:48:09.420] Chain head was updated                   number=4,089,327 hash=a53c06..ca3a68 root=fee0e1..59bd9a elapsed=1.546273ms age=3w2d15h
INFO [12-08|08:48:09.426] Starting work on payload                 id=0x8b8d977399aa69cf
INFO [12-08|08:48:09.429] Imported new potential chain segment     number=4,089,328 hash=e75c7f..407901 blocks=1 txs=1 mgas=0.064 elapsed=2.145ms    mgasps=29.812 age=3w2d15h triedirty=377.48KiB
INFO [12-08|08:48:09.432] Chain head was updated                   number=4,089,328 hash=e75c7f..407901 root=8825ee..245e2e elapsed=1.613619ms age=3w2d15h
INFO [12-08|08:48:09.437] Starting work on payload                 id=0x4ab7e325d9500b6c
INFO [12-08|08:48:09.441] Imported new potential chain segment     number=4,089,329 hash=2ea5dc..e30dc4 blocks=1 txs=1 mgas=0.047 elapsed=2.040
unt=0 tried=209 static=0
INFO [12-08|08:51:14.160] Looking for peers                        peercount=0 tried=76  static=0
INFO [12-08|08:51:25.032] Looking for peers                        peercount=0 tried=136 static=0
INFO [12-08|08:51:35.044] Looking for peers                        peercount=0 tried=146 static=0
INFO [12-08|08:51:55.178] Looking for peers                        peercount=1 tried=171 static=0
INFO [12-08|08:52:05.210] Looking for peers                        peercount=0 tried=76  static=0
INFO [12-08|08:52:15.325] Looking for peers                        peercount=0 tried=108 static=0
INFO [12-08|08:52:35.621] Looking for peers                        peercount=0 tried=91  static=0
INFO [12-08|08:52:45.624] Looking for peers                        peercount=0 tried=130 static=0
INFO [12-08|08:52:55.682] Looking for peers                        peercount=2 tried=95  static=0
INFO [12-08|08:53:05.771] Looking for peers                        peercount=1 tried=147 static=0
INFO [12-08|08:53:15.860] Looking for peers                        peercount=1 tried=174 static=0
INFO [12-08|08:53:35.907] Looking for peers                        peercount=0 tried=60  static=0
INFO [12-08|08:53:45.921] Looking for peers                        peercount=0 tried=129 static=0
INFO [12-08|08:53:55.940] Looking for peers                        peercount=1 tried=89  static=0
INFO [12-08|08:54:05.961] Looking for peers                        peercount=0 tried=176 static=0
INFO [12-08|08:54:15.995] Looking for peers                        peercount=0 tried=107 static=0
INFO [12-08|08:54:26.080] Looking for peers                        peercount=0 tried=55  static=0
INFO [12-08|08:54:36.284] Looking for peers                        peercount=0
INFO [12-08|08:58:38.129] Looking for peers                        peercount=0 tried=150 static=0
INFO [12-08|08:58:48.169] Looking for peers                        peercount=0 tried=113 static=0
INFO [12-08|08:58:58.218] Looking for peers                        peercount=0 tried=97  static=0
INFO [12-08|08:59:08.254] Looking for peers                        peercount=0 tried=113 static=0
INFO [12-08|08:59:18.321] Looking for peers                        peercount=0 tried=157 static=0
INFO [12-08|08:59:28.331] Looking for peers                        peercount=0 tried=128 static=0
INFO [12-08|08:59:38.377] Looking for peers                        peercount=2 tried=122 static=0
INFO [12-08|08:59:48.380] Looking for peers                        peercount=0 tried=91  static=0
INFO [12-08|08:59:58.783] Looking for peers                        peercount=0 tried=68  static=0
INFO [12-08|09:00:09.026] Looking for peers                        peercount=0 tried=157 static=0
INFO [12-08|09:00:12.596] Starting work on payload                 id=0xd6d5e8cc4edb3eb0
INFO [12-08|09:00:12.601] Imported new potential chain segment     number=4,089,331 hash=167ede..cff2bd blocks=1 txs=1 mgas=0.048 elapsed=2.438ms    mgasps=19.540 age=3w2d16h triedirty=389.76KiB
INFO [12-08|09:00:12.603] Chain head was updated                   number=4,089,331 hash=167ede..cff2bd root=504aaf..a57360 elapsed=1.733248ms age=3w2d16h
INFO [12-08|09:00:12.797] Starting work on payload                 id=0x5c0b3460b9499a8e
INFO [12-08|09:00:12.802] Imported new potential chain segment     number=4,089,332 hash=aacdc5..f40e60 blocks=1 txs=1 mgas=0.050 elapsed=2.230ms    mgasps=22.254 age=3w2d16h triedirty=394.09KiB
INFO [12-08|09:00:12.804] Chain head was updated                   number=4,089,332 hash=aacdc5..f40e60 root=e7d2b2..cc750e elapsed=1.866247ms age=3w2d16h
INFO [12-08|09:00:12.9
=4,089,337 hash=6879cb..da674c root=3319e1..29ec7e elapsed=2.398615ms age=3w2d15h
INFO [12-08|09:00:13.971] Starting work on payload                 id=0x87741effea42df8b
INFO [12-08|09:00:13.975] Imported new potential chain segment     number=4,089,338 hash=7c8c61..346121 blocks=1 txs=1 mgas=0.050 elapsed=2.253ms    mgasps=22.025 age=3w2d15h triedirty=420.04KiB
INFO [12-08|09:00:13.978] Chain head was updated                   number=4,089,338 hash=7c8c61..346121 root=6dceaa..c42f5a elapsed=2.163432ms age=3w2d15h
INFO [12-08|09:00:14.278] Starting work on payload                 id=0x0c0fd6aa8e689999
INFO [12-08|09:00:14.283] Imported new potential chain segment     number=4,089,339 hash=c57cef..a8bbab blocks=1 txs=1 mgas=0.064 elapsed=2.190ms    mgasps=29.195 age=3w2d15h triedirty=424.02KiB
INFO [12-08|09:00:14.285] Chain head was updated                   number=4,089,339 hash=c57cef..a8bbab root=011c4d..95f70b elapsed=2.050016ms age=3w2d15h
INFO [12-08|09:00:14.291] Starting work on payload                 id=0x9781886f78dad87a
INFO [12-08|09:00:14.295] Imported new potential chain segment     number=4,089,340 hash=c3262e..6c62b5 blocks=1 txs=1 mgas=0.047 elapsed=2.157ms    mgasps=21.712 age=3w2d15h triedirty=428.00KiB
INFO [12-08|09:00:14.297] Chain head was updated                   number=4,089,340 hash=c3262e..6c62b5 root=94cefb..0cff84 elapsed=1.74869ms  age=3w2d15h
INFO [12-08|09:00:14.302] Starting work on payload                 id=0x13a1d098e27d4568
INFO [12-08|09:00:14.305] Imported new potential chain segment     number=4,089,341 hash=5150d0..7535bc blocks=1 txs=1 mgas=0.047 elapsed=2.057ms    mgasps=22.768 age=3w2d15h triedirty=431.98KiB
INFO [12-08|09:00:14.307] Chain head was updated                   number=4,089,341 hash=5150d0..7535bc root=0f3851..caa6a3 elapsed=1.909133ms age=3w2d15h
INFO [12-08|09:00:14.313] Starting work on payload                 id=0xf5173f3b89d1a596
INFO [12-08|09:00:14.317] Imported new potential
INFO [12-08|09:00:14.510] Starting work on payload                 id=0x01ca6614cc4bb02b
INFO [12-08|09:00:14.514] Imported new potential chain segment     number=4,089,347 hash=d377ee..e8f1f3 blocks=1 txs=1 mgas=0.047 elapsed=1.894ms    mgasps=24.731 age=3w2d15h triedirty=456.19KiB
INFO [12-08|09:00:14.516] Chain head was updated                   number=4,089,347 hash=d377ee..e8f1f3 root=261f91..be182b elapsed=1.71191ms  age=3w2d15h
INFO [12-08|09:00:14.522] Starting work on payload                 id=0x2801cdefe48e9e44
INFO [12-08|09:00:14.526] Imported new potential chain segment     number=4,089,348 hash=9da809..476f51 blocks=1 txs=1 mgas=0.048 elapsed=2.290ms    mgasps=20.792 age=3w2d15h triedirty=460.52KiB
INFO [12-08|09:00:14.528] Chain head was updated                   number=4,089,348 hash=9da809..476f51 root=334244..f7f4df elapsed=1.719405ms age=3w2d15h
INFO [12-08|09:00:14.664] Starting work on payload                 id=0x304875dc648f2330
INFO [12-08|09:00:14.668] Imported new potential chain segment     number=4,089,349 hash=d6d8e4..4a57ab blocks=1 txs=1 mgas=0.064 elapsed=1.936ms    mgasps=33.024 age=3w2d15h triedirty=464.49KiB
INFO [12-08|09:00:14.671] Chain head was updated                   number=4,089,349 hash=d6d8e4..4a57ab root=edb749..5a2697 elapsed=1.647072ms age=3w2d15h
INFO [12-08|09:00:14.676] Starting work on payload                 id=0x95579b58ced7557c
INFO [12-08|09:00:14.680] Imported new potential chain segment     number=4,089,350 hash=d64079..e7e214 blocks=1 txs=1 mgas=0.047 elapsed=2.210ms    mgasps=21.194 age=3w2d15h triedirty=468.47KiB
INFO [12-08|09:00:14.682] Chain head was updated                   number=4,089,350 hash=d64079..e7e214 root=d5e45c..769a27 elapsed=1.681651ms age=3w2d15h
INFO [12-08|09:00:14.688] Starting work on payload                 id=0xeff4764cbbc15ef6
INFO [12-08|09:00:14.692] Imported new potential chain segment     number=4,089,351 hash=050ec1..ee2e1b blocks=1 txs=1 mgas=0.047 elapsed=2.241ms    mgasps=20.896 age
INFO [12-08|09:00:14.873] Imported new potential chain segment     number=4,089,356 hash=ad51bf..18e45a blocks=1 txs=1 mgas=0.047 elapsed=1.935ms    mgasps=24.212 age=3w2d15h triedirty=492.68KiB
INFO [12-08|09:00:14.875] Chain head was updated                   number=4,089,356 hash=ad51bf..18e45a root=6a8774..123332 elapsed=1.868902ms age=3w2d15h
INFO [12-08|09:00:14.881] Starting work on payload                 id=0xce6e89a07bd22982
INFO [12-08|09:00:14.885] Imported new potential chain segment     number=4,089,357 hash=1495e1..6a136d blocks=1 txs=1 mgas=0.047 elapsed=2.190ms    mgasps=21.387 age=3w2d15h triedirty=496.66KiB
INFO [12-08|09:00:14.888] Chain head was updated                   number=4,089,357 hash=1495e1..6a136d root=1d56a0..3cbca1 elapsed=1.950721ms age=3w2d15h
INFO [12-08|09:00:14.894] Starting work on payload                 id=0x64c746fc0f57dacd
INFO [12-08|09:00:14.898] Imported new potential chain segment     number=4,089,358 hash=3593ca..646d60 blocks=1 txs=1 mgas=0.047 elapsed=2.397ms    mgasps=19.540 age=3w2d15h triedirty=500.64KiB
INFO [12-08|09:00:14.900] Chain head was updated                   number=4,089,358 hash=3593ca..646d60 root=d30a6f..116451 elapsed=1.863733ms age=3w2d15h
INFO [12-08|09:00:14.906] Starting work on payload                 id=0xa29c37b0189aded8
INFO [12-08|09:00:14.909] Imported new potential chain segment     number=4,089,359 hash=4b3bef..0213cb blocks=1 txs=1 mgas=0.047 elapsed=2.191ms    mgasps=21.384 age=3w2d15h triedirty=504.62KiB
INFO [12-08|09:00:14.912] Chain head was updated                   number=4,089,359 hash=4b3bef..0213cb root=6118d9..ea379c elapsed=2.107422ms age=3w2d15h
INFO [12-08|09:00:14.919] Starting work on payload                 id=0xb3546c36c57aa261
INFO [12-08|09:00:14.924] Imported new potential chain segment     number=4,089,360 hash=1ba4fb..0e27e6 blocks=1 txs=1 mgas=0.047 elapsed=2.268ms    mgasps=20.651 age=3w2d15h triedirty=508.59KiB