Skip to content

Commit

Permalink
Duplicated checks removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskin1 committed Oct 9, 2018
1 parent ad47ce1 commit 1b283dd
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ class ErgoNodeViewHolderSpec extends ErgoPropertyTest with NodeViewTestOps with

applyBlock(block) shouldBe 'success
getBestHeaderOpt shouldBe Some(block.header)
if (verifyTransactions) {
getRootHash shouldBe Algos.encode(wusAfterBlock.rootHash)
}
getRootHash shouldBe Algos.encode(wusAfterBlock.rootHash)
getBestHeaderOpt shouldBe Some(block.header)

val brokenBlock = genInvalidFullBlock(block.header, wusAfterBlock)
Expand Down Expand Up @@ -160,9 +158,7 @@ class ErgoNodeViewHolderSpec extends ErgoPropertyTest with NodeViewTestOps with

applyBlock(block) shouldBe 'success
getBestHeaderOpt shouldBe Some(block.header)
if (verifyTransactions) {
getRootHash shouldBe Algos.encode(wusAfterBlock.rootHash)
}
getRootHash shouldBe Algos.encode(wusAfterBlock.rootHash)
getBestHeaderOpt shouldBe Some(block.header)

val brokenBlock = genBlockWithInvalidExtension(block.header, wusAfterBlock)
Expand Down

0 comments on commit 1b283dd

Please sign in to comment.