use of co.rsk.test.builders.BlockBuilder in project rskj by rsksmart.
the class BlockBuilderTest method buildBlockWithGenesisAsParent.
@Test
public void buildBlockWithGenesisAsParent() {
Block genesis = new BlockGenerator().getGenesisBlock();
BlockBuilder builder = new BlockBuilder();
Block block = builder.parent(genesis).build();
Assert.assertNotNull(block);
Assert.assertEquals(1, block.getNumber());
// Assert.assertTrue(genesis.getCumulativeDifficulty().compareTo(block.getDifficultyBI()) < 0);
Assert.assertEquals(genesis.getHash(), block.getParentHash());
}
Aggregations