Analysis of failure of UncleFromSideChain_Merge and UncleFromSideChain_Shanghai. They have the same cause but will take an in-depth dive of UncleFromSideChain_Shanghai as an illustration.
Test Description
Import block 1 through 8 in order.
Block 1 - 3 corresponds to blocknumber 1 through 3 on chainname='A'
Block 4 - 8 are on chainname='B'. blocknumber for these blocks is 1, 2, 3, 4, 4 in the respective order
Block 7 is intentially be a bad block
Timestamp of block 8 is greater than block 3
Expected outcome upon calling eth_getBlockByNumber for the latest block should be block 8 but Besu returns block 3