示例#1
0
 static LegacyBlockchainTestBase()
 {
     DifficultyCalculator = new DifficultyCalculatorWrapper();
     Sealer = new EthashSealValidator(_logManager, DifficultyCalculator, new Ethash(_logManager)); // temporarily keep reusing the same one as otherwise it would recreate cache for each test
 }
示例#2
0
 static BlockchainTestBase()
 {
     DifficultyCalculator = new DifficultyCalculatorWrapper();
     Sealer = new EthashSealValidator(_logManager, DifficultyCalculator, new CryptoRandom(), new Ethash(_logManager), Timestamper.Default); // temporarily keep reusing the same one as otherwise it would recreate cache for each test
 }