You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Substrate framework for our blockchain and encounter a problem with block finalization. It seems Substrate doesn't support a use case with a permanent block gap created by some form of fast sync.
Take Client.apply_finality_with_block_hash from sc-service crate for example: it uses tree_route method several times which will fail when we try to finalize a recent block received by sync (it will try to obtain a path to the last finalized block which will be the genesis and fail on missing blocks between genesis and some recent block having a permanent gap created by some form of fast sync).
Substrate solves it by downloading the gap and finalizing blocks after that (all the block headers will be present in the db). But what if in our case we don't need to download even headers?
How do we get block finalization having a permanent block gap?
We use Substrate framework for our blockchain and encounter a problem with block finalization. It seems Substrate doesn't support a use case with a permanent block gap created by some form of fast sync.
Take
Client.apply_finality_with_block_hash
fromsc-service
crate for example: it usestree_route
method several times which will fail when we try to finalize a recent block received by sync (it will try to obtain a path to the last finalized block which will be the genesis and fail on missing blocks between genesis and some recent block having a permanent gap created by some form of fast sync).Substrate solves it by downloading the gap and finalizing blocks after that (all the block headers will be present in the db). But what if in our case we don't need to download even headers?
How do we get block finalization having a permanent block gap?
Here is the related issue: #5119 (edited)
The text was updated successfully, but these errors were encountered: