コード例 #1
0
        public MothraPeeringWorker(ILogger <MothraPeeringWorker> logger,
                                   IOptionsMonitor <MothraConfiguration> mothraConfigurationOptions,
                                   IHostEnvironment environment,
                                   IClientVersion clientVersion,
                                   IStore store,
                                   IMothraLibp2p mothraLibp2P,
                                   DataDirectory dataDirectory,
                                   PeerManager peerManager,
                                   PeerDiscoveredProcessor peerDiscoveredProcessor,
                                   RpcPeeringStatusProcessor rpcPeeringStatusProcessor,
                                   RpcBeaconBlocksByRangeProcessor rpcBeaconBlocksByRangeProcessor,
                                   SignedBeaconBlockProcessor signedBeaconBlockProcessor)
        {
            _logger        = logger;
            _environment   = environment;
            _clientVersion = clientVersion;
            _dataDirectory = dataDirectory;
            _mothraConfigurationOptions = mothraConfigurationOptions;
            _mothraLibp2P                    = mothraLibp2P;
            _peerManager                     = peerManager;
            _peerDiscoveredProcessor         = peerDiscoveredProcessor;
            _rpcPeeringStatusProcessor       = rpcPeeringStatusProcessor;
            _rpcBeaconBlocksByRangeProcessor = rpcBeaconBlocksByRangeProcessor;
            _signedBeaconBlockProcessor      = signedBeaconBlockProcessor;
            _store = store;

            // 396 bytes
            _minimumSignedBeaconBlockLength = Ssz.Ssz.SignedBeaconBlockLength(
                new SignedBeaconBlock(new BeaconBlock(Slot.Zero, Root.Zero, Root.Zero, BeaconBlockBody.Zero),
                                      BlsSignature.Zero));
        }
コード例 #2
0
 public MothraNetworkPeering(ILogger <MothraNetworkPeering> logger, IMothraLibp2p mothraLibp2p,
                             PeerManager peerManager)
 {
     _logger       = logger;
     _mothraLibp2p = mothraLibp2p;
     _peerManager  = peerManager;
 }
コード例 #3
0
 public PeerDiscoveredProcessor(ILogger <PeerDiscoveredProcessor> logger,
                                ISynchronizationManager synchronizationManager,
                                PeerManager peerManager)
     : base(logger, MaximumQueue)
 {
     _logger = logger;
     _synchronizationManager = synchronizationManager;
     _peerManager            = peerManager;
 }
コード例 #4
0
 public MothraNetworkPeering(ILogger <MothraNetworkPeering> logger,
                             IOptionsMonitor <NetworkingConfiguration> networkingConfigurationOptions, IMothraLibp2p mothraLibp2p,
                             PeerManager peerManager)
 {
     _logger = logger;
     _networkingConfigurationOptions = networkingConfigurationOptions;
     _mothraLibp2p = mothraLibp2p;
     _peerManager  = peerManager;
 }
コード例 #5
0
 public RpcPeeringStatusProcessor(ILogger <RpcPeeringStatusProcessor> logger,
                                  ISynchronizationManager synchronizationManager,
                                  PeerManager peerManager)
     : base(logger, MaximumQueue)
 {
     _logger = logger;
     _synchronizationManager = synchronizationManager;
     _peerManager            = peerManager;
 }