public ServiceNodeRegistration(Network network, NodeSettings nodeSettings, IBroadcasterManager broadcasterManager, IWalletTransactionHandler walletTransactionHandler, IWalletManager walletManager, IServiceNodeManager serviceNodeManager) { this.network = network; this.broadcasterManager = broadcasterManager; this.walletTransactionHandler = walletTransactionHandler; this.walletManager = walletManager; this.serviceNodeManager = serviceNodeManager; }
public ServiceNodeCollateralChecker( Network network, ILoggerFactory loggerFactory, IServiceNodeManager serviceNodeManager, ISignals signals, IAddressIndexer addressIndexer) { this.network = network; this.serviceNodeManager = serviceNodeManager; this.signals = signals; this.addressIndexer = addressIndexer; this.depositsByServerId = new Dictionary <string, Money>(); this.logger = loggerFactory.CreateLogger(this.GetType().FullName); }
public ServiceNodeRegistrationChecker( ILoggerFactory loggerFactory, IServiceNodeManager serviceNodeManager, IAddressIndexer addressIndexer, NodeSettings nodeSettings, ISignals signals) { this.logger = loggerFactory.CreateLogger(this.GetType().FullName); this.network = nodeSettings.Network; this.serviceNodeManager = serviceNodeManager; this.addressIndexer = addressIndexer; this.signals = signals; this.logger.LogInformation("Initialized RegistrationManager"); }
public ServiceNodeFeature(ILoggerFactory loggerFactory, NodeSettings nodeSettings, IServiceNodeManager serviceNodeManager, IServiceNodeRegistrationChecker serviceNodeRegistrationChecker, IServiceNodeCollateralChecker serviceNodeCollateralChecker, INodeStats nodeStats) { this.logger = loggerFactory.CreateLogger(this.GetType().FullName); this.serviceNodeManager = serviceNodeManager; this.serviceNodeRegistrationChecker = serviceNodeRegistrationChecker; this.serviceNodeCollateralChecker = serviceNodeCollateralChecker; nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component); nodeStats.RegisterStats(this.AddInlineStats, StatsType.Inline, 800); }
private void Setup(NodeBuilder builder) { this.node = builder.CreateRedstonePosNode(this.network) .WithWallet(Password, WalletName, Passphrase) .Start(); this.watchingNode = builder.CreateRedstonePosNode(this.network).Start(); this.walletTransactionHandler = this.node.FullNode.NodeService <IWalletTransactionHandler>(); this.walletManager = this.node.FullNode.NodeService <IWalletManager>(); this.serviceNodeManager = this.node.FullNode.NodeService <IServiceNodeManager>(); this.addressIndexer = this.node.FullNode.NodeService <IAddressIndexer>(); this.watchingServiceNodeManager = this.watchingNode.FullNode.NodeService <IServiceNodeManager>(); this.watchingAddressIndexer = this.watchingNode.FullNode.NodeService <IAddressIndexer>(); this.walletKey = this.GetWalletPrivateKeyForServer(); this.walletSecret = this.walletKey.GetBitcoinSecret(this.network); }
public ServiceNodeController( ILoggerFactory loggerFactory, IWalletManager walletManager, IWalletTransactionHandler walletTransactionHandler, Network network, IBroadcasterManager broadcasterManager, IServiceNodeManager serviceNodeManager, NodeSettings nodeSettings, ServiceNodeSettings serviceNodeSettings) { this.walletManager = walletManager; this.walletTransactionHandler = walletTransactionHandler; this.network = network; this.logger = loggerFactory.CreateLogger(this.GetType().FullName); this.broadcasterManager = broadcasterManager; this.serviceNodeManager = serviceNodeManager; this.nodeSettings = nodeSettings; this.serviceNodeSettings = serviceNodeSettings; }
public FoundationRewardValidator(Network network, IServiceNodeManager serviceNodeManager, ILoggerFactory loggerFactory) { this.network = network; this.consensus = network.Consensus; this.logger = loggerFactory.CreateLogger(this.GetType().FullName); }