Search in sources :

Example 1 with ParentBlockHeaderValidator

use of org.ethereum.validator.ParentBlockHeaderValidator in project rskj by rsksmart.

the class CommonConfigTest method createParentHeaderValidator.

@Test
public void createParentHeaderValidator() {
    CommonConfig config = new CommonConfig();
    ParentBlockHeaderValidator result = config.parentHeaderValidator(this.config, new DifficultyCalculator(this.config));
    Assert.assertNotNull(result);
}
Also used : DifficultyCalculator(co.rsk.core.DifficultyCalculator) CommonConfig(org.ethereum.config.CommonConfig) ParentBlockHeaderValidator(org.ethereum.validator.ParentBlockHeaderValidator) Test(org.junit.Test)

Aggregations

DifficultyCalculator (co.rsk.core.DifficultyCalculator)1 CommonConfig (org.ethereum.config.CommonConfig)1 ParentBlockHeaderValidator (org.ethereum.validator.ParentBlockHeaderValidator)1 Test (org.junit.Test)1