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; }
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 ConsensusStats(CoinViewStack stack, CoinView coinView, ConsensusLoop consensusLoop, ChainBehavior.ChainState chainState, ConcurrentChain chain, IConnectionManager connectionManager) { stack = new CoinViewStack(coinView); this.cache = stack.Find <CachedCoinView>(); this.dbreeze = stack.Find <DBreezeCoinView>(); this.bottom = stack.Bottom; this.consensusLoop = consensusLoop; this.lookaheadPuller = this.consensusLoop.Puller as LookaheadBlockPuller; this.lastSnapshot = consensusLoop.Validator.PerformanceCounter.Snapshot(); this.lastSnapshot2 = this.dbreeze?.PerformanceCounter.Snapshot(); this.lastSnapshot3 = this.cache?.PerformanceCounter.Snapshot(); this.chainState = chainState; this.chain = chain; this.connectionManager = connectionManager; }