Skip to content
Unverified Commit d85c1d91 authored by Rahul Subramaniyam's avatar Rahul Subramaniyam Committed by GitHub
Browse files

Add test to demonstrate the failure scenario (#1999)



The change adds a test to show the failure scenario that caused #1812 to
be rolled back (more context:
https://github.com/paritytech/polkadot-sdk/issues/493#issuecomment-1772009924)

Summary of the scenario:
1. Node has finished downloading up to block 1000 from the peers, from
the canonical chain.
2. Peers are undergoing re-org around this time. One of the peers has
switched to a non-canonical chain, announces block 1001 from that chain
3. Node downloads 1001 from the peer, and tries to import which would
fail (as we don't have the parent block 1000 from the other chain)

---------

Co-authored-by: default avatarDmitry Markin <[email protected]>
parent 18ad4490
Pipeline #407387 passed with stages
in 1 hour, 12 minutes, and 18 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment