示例#1
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;
 }
示例#2
0
 public ForkChoice(
     ILogger <ForkChoice> logger,
     ChainConstants chainConstants,
     IOptionsMonitor <MiscellaneousParameters> miscellaneousParameterOptions,
     IOptionsMonitor <TimeParameters> timeParameterOptions,
     IOptionsMonitor <MaxOperationsPerBlock> maxOperationsPerBlockOptions,
     IOptionsMonitor <ForkChoiceConfiguration> forkChoiceConfigurationOptions,
     IOptionsMonitor <SignatureDomains> signatureDomainOptions,
     ICryptographyService cryptographyService,
     BeaconChainUtility beaconChainUtility,
     BeaconStateAccessor beaconStateAccessor,
     BeaconStateTransition beaconStateTransition)
 {
     _logger         = logger;
     _chainConstants = chainConstants;
     _miscellaneousParameterOptions  = miscellaneousParameterOptions;
     _timeParameterOptions           = timeParameterOptions;
     _maxOperationsPerBlockOptions   = maxOperationsPerBlockOptions;
     _forkChoiceConfigurationOptions = forkChoiceConfigurationOptions;
     _signatureDomainOptions         = signatureDomainOptions;
     _cryptographyService            = cryptographyService;
     _beaconChainUtility             = beaconChainUtility;
     _beaconStateAccessor            = beaconStateAccessor;
     _beaconStateTransition          = beaconStateTransition;
 }
示例#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;
 }
 public SynchronizationManager(
     ILogger <SynchronizationManager> logger,
     BeaconChainUtility beaconChainUtility,
     BeaconStateAccessor beaconStateAccessor,
     IForkChoice forkChoice,
     IStore store,
     INetworkPeering networkPeering)
 {
     _logger              = logger;
     _beaconChainUtility  = beaconChainUtility;
     _beaconStateAccessor = beaconStateAccessor;
     _forkChoice          = forkChoice;
     _store          = store;
     _networkPeering = networkPeering;
 }
示例#5
0
 public ValidatorAssignments(ILogger <ValidatorAssignments> logger,
                             IOptionsMonitor <TimeParameters> timeParameterOptions,
                             BeaconChainUtility beaconChainUtility,
                             BeaconStateAccessor beaconStateAccessor,
                             BeaconStateTransition beaconStateTransition,
                             IForkChoice forkChoice,
                             IStore store)
 {
     _logger = logger;
     _timeParameterOptions  = timeParameterOptions;
     _beaconChainUtility    = beaconChainUtility;
     _beaconStateAccessor   = beaconStateAccessor;
     _beaconStateTransition = beaconStateTransition;
     _forkChoice            = forkChoice;
     _store = store;
 }
示例#6
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;
 }
 public AttestationProducer(ILogger <AttestationProducer> logger,
                            ICryptographyService cryptographyService,
                            BeaconChainUtility beaconChainUtility,
                            BeaconStateAccessor beaconStateAccessor,
                            BeaconStateTransition beaconStateTransition,
                            IForkChoice forkChoice,
                            IStore store)
 {
     _logger = logger;
     _cryptographyService   = cryptographyService;
     _beaconChainUtility    = beaconChainUtility;
     _beaconStateAccessor   = beaconStateAccessor;
     _beaconStateTransition = beaconStateTransition;
     _forkChoice            = forkChoice;
     _store = store;
 }