use of co.rsk.validators.ProofOfWorkRule 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());
}
Aggregations