public FederatedPegFeature( ILoggerFactory loggerFactory, IConnectionManager connectionManager, IFederatedPegSettings federatedPegSettings, IFullNode fullNode, IFederationWalletManager federationWalletManager, IFederationWalletSyncManager walletSyncManager, Network network, ChainIndexer chainIndexer, INodeStats nodeStats, ICrossChainTransferStore crossChainTransferStore, IPartialTransactionRequester partialTransactionRequester, MempoolCleaner mempoolCleaner, ISignedMultisigTransactionBroadcaster signedBroadcaster, IMaturedBlocksSyncManager maturedBlocksSyncManager, IWithdrawalHistoryProvider withdrawalHistoryProvider, IInputConsolidator inputConsolidator, ICollateralChecker collateralChecker = null) { this.loggerFactory = loggerFactory; this.connectionManager = connectionManager; this.federatedPegSettings = federatedPegSettings; this.fullNode = fullNode; this.chainIndexer = chainIndexer; this.federationWalletManager = federationWalletManager; this.walletSyncManager = walletSyncManager; this.network = network; this.crossChainTransferStore = crossChainTransferStore; this.partialTransactionRequester = partialTransactionRequester; this.mempoolCleaner = mempoolCleaner; this.maturedBlocksSyncManager = maturedBlocksSyncManager; this.withdrawalHistoryProvider = withdrawalHistoryProvider; this.signedBroadcaster = signedBroadcaster; this.inputConsolidator = inputConsolidator; this.logger = loggerFactory.CreateLogger(this.GetType().FullName); // add our payload var payloadProvider = (PayloadProvider)this.fullNode.Services.ServiceProvider.GetService(typeof(PayloadProvider)); payloadProvider.AddPayload(typeof(RequestPartialTransactionPayload)); nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, this.GetType().Name); nodeStats.RegisterStats(this.AddInlineStats, StatsType.Inline, this.GetType().Name, 800); }
public FederatedPegFeature( IConnectionManager connectionManager, IFederatedPegSettings federatedPegSettings, IFullNode fullNode, IFederationWalletManager federationWalletManager, IFederationWalletSyncManager walletSyncManager, Network network, INodeStats nodeStats, ICrossChainTransferStore crossChainTransferStore, IPartialTransactionRequester partialTransactionRequester, MempoolCleaner mempoolCleaner, ISignedMultisigTransactionBroadcaster signedBroadcaster, IMaturedBlocksSyncManager maturedBlocksSyncManager, IInputConsolidator inputConsolidator) { this.connectionManager = connectionManager; this.federatedPegSettings = federatedPegSettings; this.fullNode = fullNode; this.federationWalletManager = federationWalletManager; this.walletSyncManager = walletSyncManager; this.network = network; this.crossChainTransferStore = crossChainTransferStore; this.partialTransactionRequester = partialTransactionRequester; this.mempoolCleaner = mempoolCleaner; this.maturedBlocksSyncManager = maturedBlocksSyncManager; this.signedBroadcaster = signedBroadcaster; this.inputConsolidator = inputConsolidator; this.logger = LogManager.GetCurrentClassLogger(); // add our payload var payloadProvider = (PayloadProvider)this.fullNode.Services.ServiceProvider.GetService(typeof(PayloadProvider)); payloadProvider.AddPayload(typeof(RequestPartialTransactionPayload)); nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, this.GetType().Name); }