bnb-chain / opbnb

MIT License
403 stars 163 forks source link

Op-node stalls for over a minute and then catches up height #122

Closed DzBricks closed 8 months ago

DzBricks commented 8 months ago

Hello! I've ran op-node and op-geth from repo opbnb-node-docker. However upon sync completion I'm seeing a very strange behaviour, where op-node regularly stalls for over a minute and then catches up. Op-node logs before start inserting:

t=2024-02-19T09:57:59+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:57:59+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,947 origin=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209:36268946
t=2024-02-19T09:57:59+0000 lvl=dbug msg="Derivation process went idle"           progress=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209:36268946 err=EOF
t=2024-02-19T09:58:01+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,947 hash=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a
t=2024-02-19T09:58:01+0000 lvl=dbug msg="pre-fetching receipts hash"             latestBlockHash=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a latestBlockNumber=36,268,947 oldestBlockNumber=36,268,947 oldestBlockParentHash=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209
t=2024-02-19T09:58:01+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,948 l1Latest=36,268,947
t=2024-02-19T09:58:01+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:01+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:02+0000 lvl=dbug msg="L1 head moved forward"                  l1_head=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948
t=2024-02-19T09:58:02+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209:36268946 attempts=0
t=2024-02-19T09:58:02+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209:36268946 attempts=0
t=2024-02-19T09:58:03+0000 lvl=dbug msg="extended finality-data"                 last_l1=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 last_l2=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:03+0000 lvl=info msg="Advancing bq origin"                    origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 originBehind=false
t=2024-02-19T09:58:03+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:58:03+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,948 origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947
t=2024-02-19T09:58:03+0000 lvl=dbug msg="Derivation process went idle"           progress=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 err=EOF
t=2024-02-19T09:58:03+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:03+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:04+0000 lvl=info msg="New L1 finalized block"                 l1_finalized=0x9bae3d0aaa74812862da12655d55c7a958d2bc363f5c427e86b4480d64fe4209:36268946
t=2024-02-19T09:58:04+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 attempts=0
t=2024-02-19T09:58:04+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 attempts=0
t=2024-02-19T09:58:04+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,948 origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947
t=2024-02-19T09:58:04+0000 lvl=dbug msg="Derivation process went idle"           progress=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 err=EOF
t=2024-02-19T09:58:04+0000 lvl=info msg="New L1 safe block"                      l1_safe=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947
t=2024-02-19T09:58:04+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,948 hash=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243
t=2024-02-19T09:58:04+0000 lvl=dbug msg="pre-fetching receipts hash"             latestBlockHash=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243 latestBlockNumber=36,268,948 oldestBlockNumber=36,268,948 oldestBlockParentHash=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a
t=2024-02-19T09:58:04+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,949 l1Latest=36,268,948
t=2024-02-19T09:58:04+0000 lvl=dbug msg="peering tick"                           connected=1 advertised_udp=9003 advertised_tcp=9003 advertised_ip=46.4.102.29
t=2024-02-19T09:58:05+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:05+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:05+0000 lvl=dbug msg="L1 head moved forward"                  l1_head=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949
t=2024-02-19T09:58:05+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 attempts=0
t=2024-02-19T09:58:06+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3178ea0a5a5d7a8f031b6321c122866316327a63166a3883b007de6f13006d1a:36268947 attempts=0
t=2024-02-19T09:58:06+0000 lvl=dbug msg="extended finality-data"                 last_l1=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948 last_l2=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:06+0000 lvl=info msg="Advancing bq origin"                    origin=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948 originBehind=false
t=2024-02-19T09:58:06+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:58:06+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,949 origin=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948
t=2024-02-19T09:58:06+0000 lvl=dbug msg="Derivation process went idle"           progress=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948 err=EOF
t=2024-02-19T09:58:07+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:07+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:07+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,949 hash=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7
t=2024-02-19T09:58:07+0000 lvl=dbug msg="pre-fetching receipts hash"             latestBlockHash=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7 latestBlockNumber=36,268,949 oldestBlockNumber=36,268,949 oldestBlockParentHash=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243
t=2024-02-19T09:58:07+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,950 l1Latest=36,268,949
t=2024-02-19T09:58:09+0000 lvl=dbug msg="L1 head moved forward"                  l1_head=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950
t=2024-02-19T09:58:09+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948 attempts=0
t=2024-02-19T09:58:09+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x3de63b273db9750dc0609c1b2df4622fb41005a553c0b7613ddf1f78d4114243:36268948 attempts=0
t=2024-02-19T09:58:09+0000 lvl=dbug msg="extended finality-data"                 last_l1=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949 last_l2=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:09+0000 lvl=info msg="Advancing bq origin"                    origin=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949 originBehind=false
t=2024-02-19T09:58:09+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:58:09+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,950 origin=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949
t=2024-02-19T09:58:09+0000 lvl=dbug msg="Derivation process went idle"           progress=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949 err=EOF
t=2024-02-19T09:58:09+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:09+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:09+0000 lvl=dbug msg="peering tick"                           connected=1 advertised_udp=9003 advertised_tcp=9003 advertised_ip=46.4.102.29
t=2024-02-19T09:58:10+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,950 hash=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03
t=2024-02-19T09:58:10+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,951 hash=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1
t=2024-02-19T09:58:10+0000 lvl=dbug msg="pre-fetching receipts hash"             latestBlockHash=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1 latestBlockNumber=36,268,951 oldestBlockNumber=36,268,950 oldestBlockParentHash=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7
t=2024-02-19T09:58:10+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,952 l1Latest=36,268,951
t=2024-02-19T09:58:11+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:11+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:12+0000 lvl=dbug msg="L1 head moved forward"                  l1_head=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951
t=2024-02-19T09:58:12+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949 attempts=0
t=2024-02-19T09:58:12+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x6a257081636f055f8927da3accf195ee54fdb0614ee8f41471803dadfab32ad7:36268949 attempts=0
t=2024-02-19T09:58:12+0000 lvl=dbug msg="extended finality-data"                 last_l1=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 last_l2=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:12+0000 lvl=info msg="Advancing bq origin"                    origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 originBehind=false
t=2024-02-19T09:58:12+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:58:12+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,951 origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950
t=2024-02-19T09:58:12+0000 lvl=dbug msg="Derivation process went idle"           progress=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 err=EOF
t=2024-02-19T09:58:13+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:13+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:14+0000 lvl=dbug msg="pre-fetching receipts done"             block=36,268,952 hash=0x4f46ad75f1a434f013a8ba87974d3b61e4b55cacb9182ada2e8d0c1b4c567922
t=2024-02-19T09:58:14+0000 lvl=dbug msg="pre-fetching receipts hash"             latestBlockHash=0x4f46ad75f1a434f013a8ba87974d3b61e4b55cacb9182ada2e8d0c1b4c567922 latestBlockNumber=36,268,952 oldestBlockNumber=36,268,952 oldestBlockParentHash=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1
t=2024-02-19T09:58:14+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,953 l1Latest=36,268,952
t=2024-02-19T09:58:14+0000 lvl=info msg="New L1 finalized block"                 l1_finalized=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950
t=2024-02-19T09:58:14+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 attempts=0
t=2024-02-19T09:58:14+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,951 origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950
t=2024-02-19T09:58:14+0000 lvl=dbug msg="Derivation process went idle"           progress=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 err=EOF
t=2024-02-19T09:58:14+0000 lvl=info msg="New L1 safe block"                      l1_safe=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951
t=2024-02-19T09:58:14+0000 lvl=dbug msg="peering tick"                           connected=1 advertised_udp=9003 advertised_tcp=9003 advertised_ip=46.4.102.29
t=2024-02-19T09:58:15+0000 lvl=dbug msg="L1 head moved forward"                  l1_head=0x4f46ad75f1a434f013a8ba87974d3b61e4b55cacb9182ada2e8d0c1b4c567922:36268952
t=2024-02-19T09:58:15+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 attempts=0
t=2024-02-19T09:58:15+0000 lvl=dbug msg="Derivation process step"                onto_origin=0x937c6133f8340add319553d7e5129bd5c796a2f462508fdce1f69b50cf21ea03:36268950 attempts=0
t=2024-02-19T09:58:15+0000 lvl=dbug msg="extended finality-data"                 last_l1=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951 last_l2=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:15+0000 lvl=info msg="Advancing bq origin"                    origin=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951 originBehind=false
t=2024-02-19T09:58:15+0000 lvl=dbug msg="fetching next piece of data"
t=2024-02-19T09:58:15+0000 lvl=dbug msg="can't find next L1 block info (yet)"    number=36,268,952 origin=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951
t=2024-02-19T09:58:15+0000 lvl=dbug msg="Derivation process went idle"           progress=0x9b417d74dc10e6e2e2df0b12e56c2410a157efdc3d3a252695d4e7ac6dcca6a1:36268951 err=EOF
t=2024-02-19T09:58:15+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:15+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:17+0000 lvl=dbug msg="current block height exceeds the latest block height of l1, will wait for a while." currentL1Block=36,268,953 l1Latest=36,268,952
t=2024-02-19T09:58:17+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:17+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:19+0000 lvl=dbug msg="requesting sync with open-end range"    start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942
t=2024-02-19T09:58:19+0000 lvl=dbug msg="P2P sync client received range signal, but cannot sync open-ended chain: need sync target to verify blocks through parent-hashes" start=0xed34ea434efcc378a86dd46972919226905449d07610f28bdb6facc507a859ed:16582942

How can I do my op-geth receive new block every 1 sec (generated time for new block in opBNB)?

Version: op-node: v0.2.4 and v0.2.5-alpha op-geth: v0.2.2 and v0.2.3-alpha

Params for op-node and op-geth from repo opbnb-node-docker

Hardware: Net: 1Gb/s CPU: AMD Ryzen 9 7950X3D 16-Core Processor Mem: 128GB Storage: SSD >10k IOPS

Please let me know if I can provide any more information, thanks.

welkin22 commented 8 months ago

@DzBricks Hi, your node is experiencing this situation because your op-node has not been able to join the p2p network, so it cannot receive the latest blocks from the p2p network in a timely manner. Now its blocks are all from the L1 network. It is recommended that you check the p2p-related configuration. You can also confirm the current p2p connection status of your op-node through the following interface:

curl -X POST -H "Content-Type: application/json" -d '{"id":3, "jsonrpc":"2.0", "method": "opp2p_peers","params":[true]}' http://127.0.0.1:8546

The result of this interface contains the peers that your op-node node is connected to. If it is empty, then there is a problem.

DzBricks commented 8 months ago

@DzBricks Hi, your node is experiencing this situation because your op-node has not been able to join the p2p network, so it cannot receive the latest blocks from the p2p network in a timely manner. Now its blocks are all from the L1 network. It is recommended that you check the p2p-related configuration. You can also confirm the current p2p connection status of your op-node through the following interface:

curl -X POST -H "Content-Type: application/json" -d '{"id":3, "jsonrpc":"2.0", "method": "opp2p_peers","params":[true]}' http://127.0.0.1:8546

The result of this interface contains the peers that your op-node node is connected to. If it is empty, then there is a problem.

I've found problem. In https://raw.githubusercontent.com/bnb-chain/opbnb-node-docker/main/scripts/op-node-start.sh : P2P_BOOTNODES="enr:-J24QGRN1ZLv--bzrqM-qRC-zUlCO4irVVg2bbWOvd3KEFjwLj8qCh54a1ziqic84uQz-2RLVSuNyNAbKEfrNr-STj-GAYoIQDCIgmlkgnY0gmlwhDaykUmHb3BzdGFja4PMAQCJc2VjcDI1NmsxoQJ-_5GZKjs7jaB4TILdgC8EwnwyL3Qip89wmjnyjvDDwoN0Y3CCIyuDdWRwgiMr" p2p not working with this ENR. And working with ENR from docs "running-a-local-node".

welkin22 commented 8 months ago

@DzBricks Hi, your node is experiencing this situation because your op-node has not been able to join the p2p network, so it cannot receive the latest blocks from the p2p network in a timely manner. Now its blocks are all from the L1 network. It is recommended that you check the p2p-related configuration. You can also confirm the current p2p connection status of your op-node through the following interface:

curl -X POST -H "Content-Type: application/json" -d '{"id":3, "jsonrpc":"2.0", "method": "opp2p_peers","params":[true]}' http://127.0.0.1:8546

The result of this interface contains the peers that your op-node node is connected to. If it is empty, then there is a problem.

I've found problem. In https://raw.githubusercontent.com/bnb-chain/opbnb-node-docker/main/scripts/op-node-start.sh : P2P_BOOTNODES="enr:-J24QGRN1ZLv--bzrqM-qRC-zUlCO4irVVg2bbWOvd3KEFjwLj8qCh54a1ziqic84uQz-2RLVSuNyNAbKEfrNr-STj-GAYoIQDCIgmlkgnY0gmlwhDaykUmHb3BzdGFja4PMAQCJc2VjcDI1NmsxoQJ-_5GZKjs7jaB4TILdgC8EwnwyL3Qip89wmjnyjvDDwoN0Y3CCIyuDdWRwgiMr" p2p not working with this ENR. And working with ENR from docs "running-a-local-node".

@DzBricks You are right, I am trying to fix the issue with the script, thank you very much for your feedback!

welkin22 commented 8 months ago

Close issue, given that this problem has been solved.