public ConsensusFeature( DBreezeCoinView dBreezeCoinView, Network network, PowConsensusValidator consensusValidator, ConcurrentChain chain, LookaheadBlockPuller blockPuller, CoinView coinView, ChainBehavior.ChainState chainState, ConnectionManager connectionManager, CancellationProvider globalCancellation, Signals signals, ConsensusLoop consensusLoop, NodeSettings nodeSettings, StakeChainStore stakeChain = null) { this.dBreezeCoinView = dBreezeCoinView; this.consensusValidator = consensusValidator; this.chain = chain; this.blockPuller = blockPuller; this.coinView = coinView; this.chainState = chainState; this.connectionManager = connectionManager; this.globalCancellation = globalCancellation; this.signals = signals; this.network = network; this.consensusLoop = consensusLoop; this.nodeSettings = nodeSettings; this.stakeChain = stakeChain; }
public ConsensusFeature( DBreezeCoinView dBreezeCoinView, Network network, PowConsensusValidator consensusValidator, ConcurrentChain chain, LookaheadBlockPuller blockPuller, CoinView coinView, ChainBehavior.ChainState chainState, IConnectionManager connectionManager, INodeLifetime nodeLifetime, Signals signals, ConsensusLoop consensusLoop, NodeSettings nodeSettings, NodeDeployments nodeDeployments, StakeChainStore stakeChain = null) { this.dBreezeCoinView = dBreezeCoinView; this.consensusValidator = consensusValidator; this.chain = chain; this.blockPuller = blockPuller; this.coinView = coinView; this.chainState = chainState; this.connectionManager = connectionManager; this.nodeLifetime = nodeLifetime; this.signals = signals; this.network = network; this.consensusLoop = consensusLoop; this.nodeSettings = nodeSettings; this.nodeDeployments = nodeDeployments; this.stakeChain = stakeChain; }
/// <summary> /// This is used for testing the coin view /// it allows a coinview that only has in memory entries /// </summary> public CachedCoinView(InMemoryCoinView inner, StakeChainStore stakeChainStore = null) { Guard.NotNull(inner, nameof(inner)); this.inner = inner; this.stakeChainStore = stakeChainStore; this.MaxItems = 100000; this.lockobj = new ReaderWriterLock(); this.unspents = new Dictionary <uint256, CacheItem>(); this.PerformanceCounter = new CachePerformanceCounter(); }