Exemplo n.º 1
0
 public BlockProducer(ILogger <BlockProducer> logger,
                      IOptionsMonitor <MiscellaneousParameters> miscellaneousParameterOptions,
                      IOptionsMonitor <TimeParameters> timeParameterOptions,
                      IOptionsMonitor <StateListLengths> stateListLengthOptions,
                      IOptionsMonitor <MaxOperationsPerBlock> maxOperationsPerBlockOptions,
                      IOptionsMonitor <HonestValidatorConstants> honestValidatorConstantOptions,
                      ICryptographyService cryptographyService,
                      BeaconStateTransition beaconStateTransition,
                      ForkChoice forkChoice,
                      IStoreProvider storeProvider,
                      IEth1DataProvider eth1DataProvider,
                      IOperationPool operationPool)
 {
     _logger = logger;
     _miscellaneousParameterOptions  = miscellaneousParameterOptions;
     _timeParameterOptions           = timeParameterOptions;
     _stateListLengthOptions         = stateListLengthOptions;
     _maxOperationsPerBlockOptions   = maxOperationsPerBlockOptions;
     _honestValidatorConstantOptions = honestValidatorConstantOptions;
     _cryptographyService            = cryptographyService;
     _beaconStateTransition          = beaconStateTransition;
     _forkChoice       = forkChoice;
     _storeProvider    = storeProvider;
     _eth1DataProvider = eth1DataProvider;
     _operationPool    = operationPool;
 }
Exemplo n.º 2
0
 public ChainStart(ILogger <ChainStart> logger,
                   Genesis genesis,
                   ForkChoice forkChoice)
 {
     _logger     = logger;
     _genesis    = genesis;
     _forkChoice = forkChoice;
 }
Exemplo n.º 3
0
 public BeaconNodeFacade(
     ClientVersion clientVersion,
     ForkChoice forkChoice,
     IStoreProvider storeProvider,
     ValidatorAssignments validatorAssignments,
     BlockProducer blockProducer)
 {
     _clientVersion        = clientVersion;
     _forkChoice           = forkChoice;
     _storeProvider        = storeProvider;
     _validatorAssignments = validatorAssignments;
     _blockProducer        = blockProducer;
 }
Exemplo n.º 4
0
 public ValidatorAssignments(ILogger <ValidatorAssignments> logger,
                             IOptionsMonitor <TimeParameters> timeParameterOptions,
                             BeaconChainUtility beaconChainUtility,
                             BeaconStateAccessor beaconStateAccessor,
                             BeaconStateTransition beaconStateTransition,
                             ForkChoice forkChoice,
                             IStoreProvider storeProvider)
 {
     _logger = logger;
     _timeParameterOptions  = timeParameterOptions;
     _beaconChainUtility    = beaconChainUtility;
     _beaconStateAccessor   = beaconStateAccessor;
     _beaconStateTransition = beaconStateTransition;
     _forkChoice            = forkChoice;
     _storeProvider         = storeProvider;
 }
Exemplo n.º 5
0
 public BeaconNodeFacade(
     ILogger <BeaconNodeFacade> logger,
     IClientVersion clientVersion,
     ForkChoice forkChoice,
     IStoreProvider storeProvider,
     INetworkPeering networkPeering,
     ValidatorAssignments validatorAssignments,
     BlockProducer blockProducer)
 {
     _logger               = logger;
     _clientVersion        = clientVersion;
     _forkChoice           = forkChoice;
     _storeProvider        = storeProvider;
     _networkPeering       = networkPeering;
     _validatorAssignments = validatorAssignments;
     _blockProducer        = blockProducer;
 }
Exemplo n.º 6
0
 public BeaconNodeWorker(ILogger <BeaconNodeWorker> logger,
                         IClock clock,
                         IHostEnvironment environment,
                         IConfiguration configuration,
                         ClientVersion clientVersion,
                         IStoreProvider storeProvider,
                         ForkChoice forkChoice,
                         INodeStart nodeStart)
 {
     _logger        = logger;
     _clock         = clock;
     _environment   = environment;
     _configuration = configuration;
     _clientVersion = clientVersion;
     _storeProvider = storeProvider;
     _forkChoice    = forkChoice;
     _nodeStart     = nodeStart;
 }
Exemplo n.º 7
0
 public BlockProducer(ForkChoice forkChoice, IStoreProvider storeProvider)
 {
     _forkChoice    = forkChoice;
     _storeProvider = storeProvider;
 }