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
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
traitAncestryApi<Block>{// return the most recent ancestor of `at` where `ancestor.number() % 2^n == 0`.// OR as close as possible to it.// NOTE: only safe when traversing backwards from a FINALIZED block.fnlog2ancestor(at:&BlockId,n:Block::Number) -> (Block::Number,Block::Hash);}
What the log2ancestor proofs would be good for is warp sync.
Provide a commit message with "big" ancestry proof for the most recent finalized block.
walk backwards to the last handoff, doing log2-based walk. Prove as much of the handoff's commit-message ancestry with this walk as possible. For any remaining portions, prove with "big" ancestry proof.
repeat 2 until the genesis or last checkpoint is reached.