This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Single block missing after warp sync. #12255
Labels
I3-bug
The node fails to follow expected behavior.
Currently after the warp sync we end up with the full block history, except there's one block body missing.
Warp sync selects block
X
as target. It then downloads warp proofs, which includes header forX
. Then it dowloads the state and passes the state + header to the client, where it gets imported. After that sync starts gap sync process, which downloads block headers and bodies up to blockX-1
, but not includingX
. It also starts syncing blocksX+1 ..
normally. So we end up with no body in the database for blockX
. This can be reproduced by trying to sync a new node off a warp-synced node or by simpy trying to export the target block. There are two ways to fix that:X
and passes it along with the header and state for import in the first phase of warp sync.X
. However, since headerX
is already in the DB,X
is considered to be an existing block with state. Changes to the client code will be required to allow importing just the body for such blocks.The text was updated successfully, but these errors were encountered: