public InitializeNetwork(INethermindApi api)
 {
     _api           = api;
     _logger        = _api.LogManager.GetClassLogger();
     _networkConfig = _api.Config <INetworkConfig>();
     _syncConfig    = _api.Config <ISyncConfig>();
 }
 public ReceiptMigration(IApiWithNetwork api)
 {
     _logger                   = api.LogManager.GetClassLogger <ReceiptMigration>();
     _receiptStorage           = api.ReceiptStorage ?? throw new StepDependencyException(nameof(api.ReceiptStorage));
     _dbProvider               = api.DbProvider ?? throw new StepDependencyException(nameof(api.DbProvider));
     _disposeStack             = api.DisposeStack ?? throw new StepDependencyException(nameof(api.DisposeStack));
     _blockTree                = api.BlockTree ?? throw new StepDependencyException(nameof(api.BlockTree));
     _syncModeSelector         = api.SyncModeSelector ?? throw new StepDependencyException(nameof(api.SyncModeSelector));
     _chainLevelInfoRepository = api.ChainLevelInfoRepository ?? throw new StepDependencyException(nameof(api.ChainLevelInfoRepository));
     _initConfig               = api.Config <IInitConfig>() ?? throw new StepDependencyException("initConfig");
 }
Beispiel #3
0
 public BloomMigration(IApiWithNetwork api)
 {
     _api         = api;
     _logger      = api.LogManager.GetClassLogger <BloomMigration>();
     _bloomConfig = api.Config <IBloomConfig>();
 }
Beispiel #4
0
 public ResetDatabaseMigrations(INethermindApi api)
 {
     _api = api;
 }
Beispiel #5
0
 public StartMonitoring(INethermindApi api)
 {
     _api = api;
 }
 public InitializeNodeStats(INethermindApi api)
 {
     _api = api;
 }
 public ReceiptFixMigration(IApiWithNetwork api)
 {
     _api = api;
 }
Beispiel #8
0
 public StartGrpc(INethermindApi api)
 {
     _api = api;
 }
Beispiel #9
0
 public ResolveIps(INethermindApi api)
 {
     _api = api;
 }
 public StartEthStatsClient(INethermindApi api)
 {
     _get    = api;
     _logger = _get.LogManager.GetClassLogger();
 }