public BlockStoreStats(BlockRepository blockRepository, BlockStoreCache blockStoreCache) { this.repository = blockRepository; this.cache = blockStoreCache; this.lastRepositorySnapshot = this.repository?.PerformanceCounter.Snapshot(); this.lastCacheSnapshot = this.cache?.PerformanceCounter.Snapshot(); }
public BlockStoreBehavior(ConcurrentChain chain, BlockRepository blockRepository, BlockStoreCache blockStoreCache) { this.chain = chain; this.blockRepository = blockRepository; this.blockStoreCache = blockStoreCache; this.CanRespondToGetBlocksPayload = false; this.CanRespondeToGetDataPayload = true; this.PreferHeaders = false; this.preferHeaderAndIDs = false; }
public BlockStoreLoop(ConcurrentChain chain, BlockRepository blockRepository, NodeSettings nodeArgs, BlockStore.ChainBehavior.ChainState chainState, StoreBlockPuller blockPuller, BlockStoreCache cache) { this.chain = chain; this.BlockRepository = blockRepository; this.nodeArgs = nodeArgs; this.blockPuller = blockPuller; this.ChainState = chainState; this.blockStoreCache = cache; PendingStorage = new ConcurrentDictionary <uint256, BlockPair>(); this.blockStoreStats = new BlockStoreStats(this.BlockRepository, this.blockStoreCache); }
public BlockStoreFeature(ConcurrentChain chain, ConnectionManager connectionManager, Signals signals, BlockRepository blockRepository, BlockStoreCache blockStoreCache, StoreBlockPuller blockPuller, BlockStoreLoop blockStoreLoop, BlockStoreManager blockStoreManager, BlockStoreSignaled blockStoreSignaled, FullNode.CancellationProvider cancellationProvider) { this.chain = chain; this.signals = signals; this.blockRepository = blockRepository; this.blockStoreCache = blockStoreCache; this.blockPuller = blockPuller; this.blockStoreLoop = blockStoreLoop; this.blockStoreManager = blockStoreManager; this.blockStoreSignaled = blockStoreSignaled; this.cancellationProvider = cancellationProvider; this.connectionManager = connectionManager; }
public BlockStoreFeature(ConcurrentChain chain, IConnectionManager connectionManager, Signals signals, BlockRepository blockRepository, BlockStoreCache blockStoreCache, StoreBlockPuller blockPuller, BlockStoreLoop blockStoreLoop, BlockStoreManager blockStoreManager, BlockStoreSignaled blockStoreSignaled, INodeLifetime nodeLifetime, NodeSettings nodeSettings) { this.chain = chain; this.signals = signals; this.blockRepository = blockRepository; this.blockStoreCache = blockStoreCache; this.blockPuller = blockPuller; this.blockStoreLoop = blockStoreLoop; this.blockStoreManager = blockStoreManager; this.blockStoreSignaled = blockStoreSignaled; this.nodeLifetime = nodeLifetime; this.connectionManager = connectionManager; this.nodeSettings = nodeSettings; }
public BlockStoreBehavior(ConcurrentChain chain, BlockRepository blockRepository, BlockStoreCache blockStoreCache) : this(chain, blockRepository as IBlockRepository, blockStoreCache as IBlockStoreCache) { }