public LightWalletFeature(
            IWalletSyncManager walletSyncManager,
            IWalletManager walletManager,
            IConnectionManager connectionManager,
            ChainIndexer chainIndexer,
            NodeDeployments nodeDeployments,
            IAsyncLoopFactory asyncLoopFactory,
            INodeLifetime nodeLifetime,
            IWalletFeePolicy walletFeePolicy,
            BroadcasterBehavior broadcasterBehavior,
            ILoggerFactory loggerFactory,
            StoreSettings storeSettings,
            WalletSettings walletSettings,
            INodeStats nodeStats,
            IPruneBlockStoreService lightWalletBlockStoreService)
        {
            this.walletSyncManager   = walletSyncManager;
            this.walletManager       = walletManager;
            this.connectionManager   = connectionManager;
            this.chainIndexer        = chainIndexer;
            this.nodeDeployments     = nodeDeployments;
            this.asyncLoopFactory    = asyncLoopFactory;
            this.nodeLifetime        = nodeLifetime;
            this.walletFeePolicy     = walletFeePolicy;
            this.broadcasterBehavior = broadcasterBehavior;
            this.logger         = loggerFactory.CreateLogger(this.GetType().FullName);
            this.loggerFactory  = loggerFactory;
            this.storeSettings  = storeSettings;
            this.walletSettings = walletSettings;

            this.lightWalletBlockStoreService = lightWalletBlockStoreService;

            nodeStats.RegisterStats(this.AddInlineStats, StatsType.Inline);
            nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component);
        }
Exemple #2
0
 public BlockStoreFeature(
     Network network,
     ChainIndexer chainIndexer,
     IConnectionManager connectionManager,
     BlockStoreSignaled blockStoreSignaled,
     ILoggerFactory loggerFactory,
     StoreSettings storeSettings,
     IChainState chainState,
     IBlockStoreQueue blockStoreQueue,
     INodeStats nodeStats,
     IConsensusManager consensusManager,
     ICheckpoints checkpoints,
     IPrunedBlockRepository prunedBlockRepository,
     IAddressIndexer addressIndexer,
     IPruneBlockStoreService pruneBlockStoreService)
 {
     this.network                = network;
     this.chainIndexer           = chainIndexer;
     this.blockStoreQueue        = blockStoreQueue;
     this.blockStoreSignaled     = blockStoreSignaled;
     this.connectionManager      = connectionManager;
     this.logger                 = loggerFactory.CreateLogger(this.GetType().FullName);
     this.loggerFactory          = loggerFactory;
     this.storeSettings          = storeSettings;
     this.chainState             = chainState;
     this.consensusManager       = consensusManager;
     this.checkpoints            = checkpoints;
     this.prunedBlockRepository  = prunedBlockRepository;
     this.addressIndexer         = addressIndexer;
     this.pruneBlockStoreService = pruneBlockStoreService;
     nodeStats.RegisterStats(this.AddInlineStats, StatsType.Inline, this.GetType().Name, 900);
 }