Пример #1
0
 public BeaconStateTransition(ILogger <BeaconStateTransition> logger,
                              ChainConstants chainConstants,
                              IOptionsMonitor <MiscellaneousParameters> miscellaneousParameterOptions,
                              IOptionsMonitor <GweiValues> gweiValueOptions,
                              IOptionsMonitor <InitialValues> initialValueOptions,
                              IOptionsMonitor <TimeParameters> timeParameterOptions,
                              IOptionsMonitor <StateListLengths> stateListLengthOptions,
                              IOptionsMonitor <RewardsAndPenalties> rewardsAndPenaltiesOptions,
                              IOptionsMonitor <MaxOperationsPerBlock> maxOperationsPerBlockOptions,
                              IOptionsMonitor <SignatureDomains> signatureDomainOptions,
                              ICryptographyService cryptographyService,
                              BeaconChainUtility beaconChainUtility,
                              BeaconStateAccessor beaconStateAccessor,
                              BeaconStateMutator beaconStateMutator)
 {
     _logger         = logger;
     _chainConstants = chainConstants;
     _miscellaneousParameterOptions = miscellaneousParameterOptions;
     _gweiValueOptions             = gweiValueOptions;
     _initialValueOptions          = initialValueOptions;
     _timeParameterOptions         = timeParameterOptions;
     _stateListLengthOptions       = stateListLengthOptions;
     _rewardsAndPenaltiesOptions   = rewardsAndPenaltiesOptions;
     _maxOperationsPerBlockOptions = maxOperationsPerBlockOptions;
     _signatureDomainOptions       = signatureDomainOptions;
     _cryptographyService          = cryptographyService;
     _beaconChainUtility           = beaconChainUtility;
     _beaconStateAccessor          = beaconStateAccessor;
     _beaconStateMutator           = beaconStateMutator;
 }
Пример #2
0
 public ForkChoice(
     ILogger <ForkChoice> logger,
     IOptionsMonitor <MiscellaneousParameters> miscellaneousParameterOptions,
     IOptionsMonitor <InitialValues> initialValueOptions,
     IOptionsMonitor <TimeParameters> timeParameterOptions,
     IOptionsMonitor <StateListLengths> stateListLengthOptions,
     IOptionsMonitor <MaxOperationsPerBlock> maxOperationsPerBlockOptions,
     IOptionsMonitor <ForkChoiceConfiguration> forkChoiceConfigurationOptions,
     IOptionsMonitor <SignatureDomains> signatureDomainOptions,
     BeaconChainUtility beaconChainUtility,
     BeaconStateAccessor beaconStateAccessor,
     BeaconStateTransition beaconStateTransition,
     IStoreProvider storeProvider)
 {
     _logger = logger;
     _miscellaneousParameterOptions  = miscellaneousParameterOptions;
     _initialValueOptions            = initialValueOptions;
     _timeParameterOptions           = timeParameterOptions;
     _stateListLengthOptions         = stateListLengthOptions;
     _maxOperationsPerBlockOptions   = maxOperationsPerBlockOptions;
     _forkChoiceConfigurationOptions = forkChoiceConfigurationOptions;
     _signatureDomainOptions         = signatureDomainOptions;
     _beaconChainUtility             = beaconChainUtility;
     _beaconStateAccessor            = beaconStateAccessor;
     _beaconStateTransition          = beaconStateTransition;
     _storeProvider = storeProvider;
 }
Пример #3
0
 public BeaconStateMutator(
     ChainConstants chainConstants,
     IOptionsMonitor <TimeParameters> timeParameterOptions,
     IOptionsMonitor <StateListLengths> stateListLengthOptions,
     IOptionsMonitor <RewardsAndPenalties> rewardsAndPenaltiesOptions,
     BeaconChainUtility beaconChainUtility,
     BeaconStateAccessor beaconStateAccessor)
 {
     _beaconChainUtility         = beaconChainUtility;
     _beaconStateAccessor        = beaconStateAccessor;
     _chainConstants             = chainConstants;
     _timeParameterOptions       = timeParameterOptions;
     _stateListLengthOptions     = stateListLengthOptions;
     _rewardsAndPenaltiesOptions = rewardsAndPenaltiesOptions;
 }
Пример #4
0
 public BeaconStateAccessor(IOptionsMonitor <MiscellaneousParameters> miscellaneousParameterOptions,
                            IOptionsMonitor <InitialValues> initialValueOptions,
                            IOptionsMonitor <TimeParameters> timeParameterOptions,
                            IOptionsMonitor <StateListLengths> stateListLengthOptions,
                            IOptionsMonitor <SignatureDomains> signatureDomainOptions,
                            ICryptographyService cryptographyService,
                            BeaconChainUtility beaconChainUtility)
 {
     _cryptographyService           = cryptographyService;
     _beaconChainUtility            = beaconChainUtility;
     _miscellaneousParameterOptions = miscellaneousParameterOptions;
     _initialValueOptions           = initialValueOptions;
     _timeParameterOptions          = timeParameterOptions;
     _stateListLengthOptions        = stateListLengthOptions;
     _signatureDomainOptions        = signatureDomainOptions;
 }