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
154
-
eventually { blockchain.getBestBlock().get shouldEqual oldBlock4 }
155
+
eventually {Thread.sleep(1000); blockchain.getBestBlock().get shouldEqual oldBlock4 }
155
156
}
156
157
157
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 }
167
168
}
168
169
169
170
it should "return Unknown branch, in case of PickedBlocks with block that has a parent that's not in the chain" in {
@@ -190,7 +191,7 @@ class BlockImporterItSpec
190
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