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
//because the blocks are not valid, we shouldn't reorganise, but at least stay with a current chain, and the best block of the current chain is oldBlock4
153
-
eventually { blockchain.getBestBlock().get shouldEqual oldBlock4 }
155
+
eventually {Thread.sleep(1000); blockchain.getBestBlock().get shouldEqual oldBlock4 }
154
156
}
155
157
156
158
it should "return a correct new best block after reorganising longer chain to a shorter one if its weight is bigger" in {
eventually { Thread.sleep(200); blockchain.getBestBlock().get shouldEqual newBlock3 }
167
+
eventually { Thread.sleep(1000); blockchain.getBestBlock().get shouldEqual newBlock3 }
166
168
}
167
169
168
170
it should "return Unknown branch, in case of PickedBlocks with block that has a parent that's not in the chain" in {
@@ -189,7 +191,7 @@ class BlockImporterItSpec
189
191
//not reorganising anymore until oldBlock4(not part of the chain anymore), no block/ommer validation when not part of the chain, resolveBranch is returning UnknownBranch
0 commit comments