public FullNodeController( IFullNode fullNode = null, NodeSettings nodeSettings = null, Network network = null, PowConsensusValidator consensusValidator = null, ConcurrentChain chain = null, ChainBehavior.ChainState chainState = null, BlockStoreManager blockManager = null, MempoolManager mempoolManager = null, Connection.IConnectionManager connectionManager = null) : base( fullNode: fullNode, nodeSettings: nodeSettings, network: network, consensusValidator: consensusValidator, chain: chain, chainState: chainState, blockManager: blockManager, mempoolManager: mempoolManager, connectionManager: connectionManager) { }
public BaseRPCController( IFullNode fullNode = null, NodeSettings nodeSettings = null, Network network = null, PowConsensusValidator consensusValidator = null, ConsensusLoop consensusLoop = null, ConcurrentChain chain = null, ChainState chainState = null, BlockStoreManager blockManager = null, MempoolManager mempoolManager = null, Connection.IConnectionManager connectionManager = null) { this.FullNode = fullNode; this.Settings = nodeSettings; this.Network = network; this.ConsensusValidator = consensusValidator; this.ConsensusLoop = consensusLoop; this.Chain = chain; this.ChainState = chainState; this.BlockManager = blockManager; this.MempoolManager = mempoolManager; this.ConnectionManager = connectionManager; }
public FullNodeController( ILoggerFactory loggerFactory, IPooledTransaction pooledTransaction = null, IPooledGetUnspentTransaction pooledGetUnspentTransaction = null, IGetUnspentTransaction getUnspentTransaction = null, INetworkDifficulty networkDifficulty = null, IFullNode fullNode = null, NodeSettings nodeSettings = null, Network network = null, ChainIndexer chainIndexer = null, IChainState chainState = null, Connection.IConnectionManager connectionManager = null, IConsensusManager consensusManager = null, IBlockStore blockStore = null, StoreSettings storeSettings = null, IInitialBlockDownloadState ibdState = null, IStakeChain stakeChain = null) : base( fullNode: fullNode, network: network, nodeSettings: nodeSettings, chainIndexer: chainIndexer, chainState: chainState, connectionManager: connectionManager, consensusManager: consensusManager) { this.logger = loggerFactory.CreateLogger(this.GetType().FullName); this.pooledTransaction = pooledTransaction; this.pooledGetUnspentTransaction = pooledGetUnspentTransaction; this.getUnspentTransaction = getUnspentTransaction; this.networkDifficulty = networkDifficulty; this.consensusManager = consensusManager; this.blockStore = blockStore; this.storeSettings = storeSettings; this.ibdState = ibdState; this.stakeChain = stakeChain; }
public FullNodeController( ILoggerFactory loggerFactory, IFullNode fullNode = null, NodeSettings nodeSettings = null, Network network = null, PowConsensusValidator consensusValidator = null, ConcurrentChain chain = null, ChainState chainState = null, BlockStoreManager blockManager = null, MempoolManager mempoolManager = null, Connection.IConnectionManager connectionManager = null) : base( fullNode: fullNode, nodeSettings: nodeSettings, network: network, consensusValidator: consensusValidator, chain: chain, chainState: chainState, blockManager: blockManager, mempoolManager: mempoolManager, connectionManager: connectionManager) { this.logger = loggerFactory.CreateLogger(this.GetType().FullName); }
/// <summary> /// Initializes a new instance of the object having a chain of block headers and a list of available nodes. /// </summary> /// <param name="chain">Chain of block headers.</param> /// <param name="nodes">Network peers of the node.</param> /// <param name="loggerFactory">Factory to be used to create logger for the puller.</param> public StoreBlockPuller(ConcurrentChain chain, Connection.IConnectionManager nodes, ILoggerFactory loggerFactory) : base(chain, nodes.ConnectedPeers, nodes.NodeSettings.ProtocolVersion, loggerFactory) { this.logger = loggerFactory.CreateLogger(this.GetType().FullName); }
/// <summary> /// Initializes a new instance of the object having a chain of block headers and a list of available nodes. /// </summary> /// <param name="chain">Chain of block headers.</param> /// <param name="nodes">Network peers of the node.</param> /// <param name="loggerFactory">Factory to be used to create logger for the puller.</param> public IndexBlockPuller(ConcurrentChain chain, Connection.IConnectionManager nodes, ILoggerFactory loggerFactory) : base(chain, nodes, loggerFactory) { }
public StoreBlockPuller(ConcurrentChain chain, Connection.IConnectionManager nodes) : base(chain, nodes.ConnectedNodes, nodes.NodeSettings.ProtocolVersion) { }