bnb-chain / opbnb-snapshot

15 stars 12 forks source link

forced header needed for startup #21

Open goldsquid opened 1 month ago

goldsquid commented 1 month ago

I'm trying to run a testnet node from the pebble fullnode snapshot.

steps to receate:

extract the snapshot into the datdir.

result:

WARN [10-03|06:08:21.533] Ignoring payload with missing parent     number=41,057,195 hash=e9a417..44a656 parent=6fe1d4..6900ed reason="forced head needed for startup"
WARN [10-03|06:08:22.532] Served engine_newPayloadV3               conn=192.168.0.11:39942 reqid=54 duration="406.096µs" err="forced head needed for startup"

in the op-geth logs when op-node wants to insert the new blocks.

goldsquid commented 1 month ago
INFO [10-03|06:22:58.065] Loaded most recent local header          number=40,959,494 hash=2f804e..741551 td=0 age=1d3h22m
INFO [10-03|06:22:58.065] Loaded most recent local block           number=40,949,520 hash=d93e9f..e59dc8 td=0 age=1d6h9m
INFO [10-03|06:22:58.065] Loaded most recent local snap block      number=40,959,494 hash=2f804e..741551 td=0 age=1d3h22m
INFO [10-03|06:22:58.065] Loaded most recent local finalized block number=40,959,416 hash=5d39e9..205175 td=0 age=1d3h24m
WARN [10-03|06:22:58.125] Enabling snapshot recovery               chainhead=40,949,520 diskbase=40,949,520 
WARN [10-03|06:22:58.126] Loaded snapshot journal                  diskroot=06f60c..3ce1d1 diffs=unmatched
WARN [10-03|06:22:58.126] Snapshot is not continuous with chain    snaproot=06f60c..3ce1d1 chainroot=c39681..0082fc
INFO [10-03|06:22:58.126] Initialized transaction indexer          range="entire chain"
INFO [10-03|06:22:58.126] Initialising Ethereum protocol           network=5611 dbversion=8
INFO [10-03|06:22:58.126] Loaded local transaction journal         transactions=0 dropped=0
INFO [10-03|06:22:58.126] Chain post-merge, sync via beacon client
INFO [10-03|06:22:58.126] Gasprice oracle is ignoring threshold set threshold=2
WARN [10-03|06:22:58.127] Unclean shutdown detected                booted=2024-10-02T02:58:20+0000 age=1d3h24m
WARN [10-03|06:22:58.127] Engine API enabled                       protocol=eth
INFO [10-03|06:22:58.127] Starting peer-to-peer node               instance=Geth/v0.5.0-stable-f3bc8ceb/linux-amd64/go1.21.13
INFO [10-03|06:22:58.136] New local node record                    seq=1,727,935,645,420 id=d0a34ca5526cd31e ip=127.0.0.1 udp=30303 tcp=30303
INFO [10-03|06:22:58.136] Started P2P networking                   self=enode://232c105d180da2658087d53ec5c186bcdd567b9b0e25b5367c8d3691f94ca9737eb265375a2ebe47605e51f0b5a8d03c952f1729d029e83052072ef41c61c197@127.0
.0.1:30303
INFO [10-03|06:22:58.137] IPC endpoint opened                      url=/geth/geth.ipc
INFO [10-03|06:22:58.138] Loaded JWT secret file                   path=/jwtsecret crc32=0xe7a6988
INFO [10-03|06:22:58.138] WebSocket enabled                        url=ws://[::]:8545
INFO [10-03|06:22:58.138] HTTP server started                      endpoint=[::]:8545 auth=false prefix= cors=* vhosts=*
INFO [10-03|06:22:58.138] WebSocket enabled                        url=ws://[::]:8551
INFO [10-03|06:22:58.138] HTTP server started                      endpoint=[::]:8551 auth=true  prefix= cors=localhost vhosts=*
INFO [10-03|06:23:00.976] loop print db stats                      database=/geth/geth/chaindata comp_time=977,329,727 write_delay_count=0 write_delay_time=0 non_level0_comp_count=4 level0_comp_count=4
INFO [10-03|06:23:03.977] loop print db stats                      database=/geth/geth/chaindata comp_time=977,329,727 write_delay_count=0 write_delay_time=0 non_level0_comp_count=4 level0_comp_count=4
WARN [10-03|06:23:05.331] Ignoring payload with missing parent     number=41,058,079 hash=9b5b02..6ec0cc parent=1e447d..cd4887 reason="forced head needed for startup"
WARN [10-03|06:23:05.331] Served engine_newPayloadV3               conn=192.168.0.11:52972 reqid=4 duration=1.252944ms err="forced head needed for startup"
WARN [10-03|06:23:06.130] Ignoring payload with missing parent     number=41,058,080 hash=16a58a..c55377 parent=9b5b02..6ec0cc reason="forced head needed for startup"
WARN [10-03|06:23:06.130] Served engine_newPayloadV3               conn=192.168.0.11:52972 reqid=5 duration="964.34µs" err="forced head needed for startup"
INFO [10-03|06:23:06.977] loop print db stats                      database=/geth/geth/chaindata comp_time=977,329,727 write_delay_count=0 write_delay_time=0 non_level0_comp_count=4 level0_comp_count=4
WARN [10-03|06:23:07.135] Ignoring payload with missing parent     number=41,058,081 hash=7a6764..7de832 parent=16a58a..c55377 reason="forced head needed for startup"
WARN [10-03|06:23:07.135] Served engine_newPayloadV3               conn=192.168.0.11:52972 reqid=6 duration="482.951µs" err="forced head needed for startup"
STdevK commented 1 month ago

which snapshot did you use to sync testnet node?