Exemplo n.º 1
0
        public DPoSInformationGenerationServiceTests()
        {
            _minerKeyPair = CryptoHelpers.GenerateKeyPair();

            _accountService = GetRequiredService <IAccountService>();
            _consensusInformationGenerationService = GetRequiredService <IConsensusInformationGenerationService>();
            _smartContractAddressService           = GetRequiredService <ISmartContractAddressService>();
            _transactionReadOnlyExecutionService   = GetRequiredService <ITransactionReadOnlyExecutionService>();
        }
Exemplo n.º 2
0
        public ConsensusService(IConsensusInformationGenerationService consensusInformationGenerationService,
                                IConsensusScheduler consensusScheduler, ConsensusControlInformation consensusControlInformation)
        {
            _consensusInformationGenerationService = consensusInformationGenerationService;
            _consensusControlInformation           = consensusControlInformation;
            _consensusScheduler = consensusScheduler;

            Logger = NullLogger <ConsensusService> .Instance;
        }
Exemplo n.º 3
0
 public DPoSInformationProvider(IConsensusInformationGenerationService consensusInformationGenerationService)
 {
     _consensusInformationGenerationService = consensusInformationGenerationService;
 }