public StartupChainModule(Context context, ChainService chainSyncService, NodeConnectionService nodeConnectionService, ILoggerFactory loggerFactory) : base(context) { this.ChainIndex = context.ChainIndex; this.chainSyncService = chainSyncService; this.nodeConnectionService = nodeConnectionService; this.logger = loggerFactory.CreateLogger <StartupChainModule>(); }
public ChainService(Context context, NodeConnectionService nodeConnectionService, ILoggerFactory loggerFactory) : base(context) { this.ChainIndex = this.Context.ChainIndex; this.nodeConnectionService = nodeConnectionService; this.logger = loggerFactory.CreateLogger <ChainService>(); this.Disposables.Add(this.ChainIndex.TipChangedSignal); }
public ShutdowhainChainModule(Context context, ChainService chainSyncService, NodeConnectionService nodeConnectionService, ILoggerFactory loggerFactory, WalletStore walletStore) : base(context) { this.ChainIndex = context.ChainIndex; this.chainSyncService = chainSyncService; this.nodeConnectionService = nodeConnectionService; this.walletStore = walletStore; this.logger = loggerFactory.CreateLogger <ShutdowhainChainModule>(); }
public StartupWalletModule(Context context, ILoggerFactory loggerFactory, WalletStore walletStore, WalletWorker walletWorker, WalletService walletService, LogFilter logFilter) : base(context) { this.ChainIndex = context.ChainIndex; this.walletStore = walletStore; this.walletWorker = walletWorker; this.walletService = walletService; this.logFilter = logFilter; this.logger = loggerFactory.CreateLogger <StartupWalletModule>(); }
public BlockReceiver(Context context, NodeConnectionService nodeConnectionService, BlockSyncHub blockSyncHub, ChainService chainSyncService, ILoggerFactory loggerFactory, WalletWorker walletWorker) : base(context) { this.nodeConnectionService = nodeConnectionService; this.chainIndex = context.ChainIndex; this.chainSyncService = chainSyncService; this.walletWorker = walletWorker; this.logger = loggerFactory.CreateLogger <BlockReceiver>(); this.orphanBlocks = new Dictionary <uint256, OrphanBlock>(); this.BlockSyncHub = blockSyncHub; }
public WalletService(Context context, WalletStore walletStore, MinerService minerService) : base(context) { this.walletStore = walletStore; this.minerService = minerService; this.chainIndex = context.ChainIndex; // Set reserve amount not participating in network protection // If no parameters provided current setting is printed this.reserveBalance = 0; this.coinbaseMaturity = 50; this.minimumInputValue = 0; }
public DownloadManager(Context context, NodeConnectionService nodeConnectionService, ChainService chainSyncService, ILoggerFactory loggerFactory, WalletWorker walletWorker, BlockReceiver blockReceiver) { this.context = context; this.nodeConnectionService = nodeConnectionService; this.chainIndex = context.ChainIndex; this.chainSyncService = chainSyncService; this.walletWorker = walletWorker; this.blockReceiver = blockReceiver; this.ReceivedBlocks = new ConcurrentDictionary <uint256, Block>(); this.Fetchers = new ConcurrentDictionary <DownloadFetcher, Node>(); this.logger = loggerFactory.CreateLogger <DownloadManager>(); }
public BlockMiner(Context context, NodeConnectionService nodeConnectionService, BlockSyncHub blockSyncHub, ChainService chainSyncService, WalletService walletService, WalletWorker walletWorker, BlockReceiver blockReceiver, MinerService minerService) : base(context) { this.nodeConnectionService = nodeConnectionService; this.chainIndex = context.ChainIndex; this.chainSyncService = chainSyncService; this.walletService = walletService; this.walletWorker = walletWorker; this.blockReceiver = blockReceiver; this.minerService = minerService; this.BlockSyncHub = blockSyncHub; this.minerSleep = 500; // GetArg("-minersleep", 500); this.LastCoinStakeSearchInterval = 0; this.LastCoinStakeSearchTime = DateTime.UtcNow.ToUnixTimestamp(); }
public StartupIndexModule(Context context, ILoggerFactory loggerFactory, LogFilter logFilter) : base(context) { this.ChainIndex = context.ChainIndex; this.logFilter = logFilter; this.logger = loggerFactory.CreateLogger <StartupIndexModule>(); }
public GetDataReceiver(Context context, BlockSyncHub blockSyncHub, MinerService minerService) : base(context) { this.minerService = minerService; this.BlockSyncHub = blockSyncHub; this.chainIndex = context.ChainIndex; }