public DPoSInformationGenerationServiceTests() { _minerKeyPair = CryptoHelpers.GenerateKeyPair(); _accountService = GetRequiredService <IAccountService>(); _consensusInformationGenerationService = GetRequiredService <IConsensusInformationGenerationService>(); _smartContractAddressService = GetRequiredService <ISmartContractAddressService>(); _transactionReadOnlyExecutionService = GetRequiredService <ITransactionReadOnlyExecutionService>(); }
public ConsensusService(IConsensusInformationGenerationService consensusInformationGenerationService, IConsensusScheduler consensusScheduler, ConsensusControlInformation consensusControlInformation) { _consensusInformationGenerationService = consensusInformationGenerationService; _consensusControlInformation = consensusControlInformation; _consensusScheduler = consensusScheduler; Logger = NullLogger <ConsensusService> .Instance; }
public DPoSInformationProvider(IConsensusInformationGenerationService consensusInformationGenerationService) { _consensusInformationGenerationService = consensusInformationGenerationService; }