Exemple #1
0
 public ReportingContractBasedValidator(
     ContractBasedValidator contractValidator,
     IReportingValidatorContract reportingValidatorContract,
     long posdaoTransition,
     ITxSender txSender,
     ITxPool txPool,
     IStateProvider stateProvider,
     Cache cache,
     ILogManager logManager)
 {
     _contractValidator = contractValidator ?? throw new ArgumentNullException(nameof(contractValidator));
     ValidatorContract  = reportingValidatorContract ?? throw new ArgumentNullException(nameof(reportingValidatorContract));
     _posdaoTransition  = posdaoTransition;
     _posdaoTxSender    = txSender ?? throw new ArgumentNullException(nameof(txSender));
     _stateProvider     = stateProvider ?? throw new ArgumentNullException(nameof(stateProvider));
     _nonPosdaoTxSender = new TxGasPriceSender(txSender, txPool);
     _persistentReports = cache?.PersistentReports ?? throw new ArgumentNullException(nameof(cache));
     _logger            = logManager?.GetClassLogger <ReportingContractBasedValidator>() ?? throw new ArgumentNullException(nameof(logManager));
 }