Search in sources :

Example 1 with BlockValidationRule

use of co.rsk.validators.BlockValidationRule in project rskj by rsksmart.

the class Web3ImplSnapshotTest method getMinerServerForTest.

static MinerServer getMinerServerForTest(World world, SimpleEthereum ethereum) {
    BlockValidationRule rule = new MinerManagerTest.BlockValidationRuleDummy();
    DifficultyCalculator difficultyCalculator = new DifficultyCalculator(config);
    return new MinerServerImpl(config, ethereum, world.getBlockChain(), world.getBlockProcessor(), difficultyCalculator, new ProofOfWorkRule(config).setFallbackMiningEnabled(false), new BlockToMineBuilder(ConfigUtils.getDefaultMiningConfig(), world.getBlockChain().getRepository(), world.getBlockChain().getBlockStore(), world.getBlockChain().getTransactionPool(), difficultyCalculator, new GasLimitCalculator(config), rule, config, null), ConfigUtils.getDefaultMiningConfig());
}
Also used : DifficultyCalculator(co.rsk.core.DifficultyCalculator) BlockValidationRule(co.rsk.validators.BlockValidationRule) ProofOfWorkRule(co.rsk.validators.ProofOfWorkRule)

Aggregations

DifficultyCalculator (co.rsk.core.DifficultyCalculator)1 BlockValidationRule (co.rsk.validators.BlockValidationRule)1 ProofOfWorkRule (co.rsk.validators.ProofOfWorkRule)1