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,
            AddressIndexer addressIndexer)
        {
            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;

            nodeStats.RegisterStats(this.AddInlineStats, StatsType.Inline, 900);
        }
Пример #2
0
 public PruneBlockStoreService(
     IAsyncProvider asyncProvider,
     IBlockRepository blockRepository,
     IPrunedBlockRepository prunedBlockRepository,
     IChainState chainState,
     ILoggerFactory loggerFactory,
     INodeLifetime nodeLifetime,
     StoreSettings storeSettings)
 {
     this.asyncProvider         = asyncProvider;
     this.blockRepository       = blockRepository;
     this.prunedBlockRepository = prunedBlockRepository;
     this.chainState            = chainState;
     this.logger        = loggerFactory.CreateLogger(this.GetType().FullName);
     this.nodeLifetime  = nodeLifetime;
     this.storeSettings = storeSettings;
 }
Пример #3
0
 public PruneBlockStoreService(
     IAsyncLoopFactory asyncLoopFactory,
     IBlockRepository blockRepository,
     IPrunedBlockRepository prunedBlockRepository,
     IChainState chainState,
     ILoggerFactory loggerFactory,
     INodeLifetime nodeLifetime,
     StoreSettings storeSettings)
 {
     this.asyncLoopFactory      = asyncLoopFactory;
     this.blockRepository       = blockRepository;
     this.prunedBlockRepository = prunedBlockRepository;
     this.chainState            = chainState;
     this.logger        = loggerFactory.CreateLogger("Impleum.Bitcoin.FullNode");
     this.nodeLifetime  = nodeLifetime;
     this.storeSettings = storeSettings;
 }