Exemple #1
0
        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;
        }
Exemple #3
0
 public DPoSInformationProvider(IConsensusInformationGenerationService consensusInformationGenerationService)
 {
     _consensusInformationGenerationService = consensusInformationGenerationService;
 }