Skip to content

Commit

Permalink
Removed verify = false from test
Browse files Browse the repository at this point in the history
  • Loading branch information
xrtm000 committed Dec 7, 2023
1 parent 3e7c2d6 commit 5c51537
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class LightNodeBlockFieldsTest extends PropSpec with WithDomain {
d.blockchain,
d.testTime,
d.settings.copy(minerSettings = d.settings.minerSettings.copy(quorum = 0, minMicroBlockAge = 0.seconds)),
verify = false,
timeDrift = Int.MaxValue
) { case (miner, append) =>
val microBlockMiner = new MicroBlockMinerImpl(
Expand All @@ -44,7 +43,11 @@ class LightNodeBlockFieldsTest extends PropSpec with WithDomain {
identity
)
def block(height: Int) = d.blocksApi.blockAtHeight(height).get._1.header
def appendBlock() = append(miner.forgeBlock(defaultSigner).explicitGet()._1).explicitGet()
def appendBlock() = {
val block = miner.forgeBlock(defaultSigner).explicitGet()._1
d.testTime.setTime(block.header.timestamp)
append(block).explicitGet()
}
def appendMicro() = {
d.utxPool.putIfNew(transfer()).resultE.explicitGet()
microBlockMiner.generateOneMicroBlockTask(defaultSigner, d.lastBlock, Unlimited, 0).runSyncUnsafe()
Expand Down

0 comments on commit 5c51537

Please sign in to comment.