Ejemplo n.º 1
0
 public IndexStoreRPCControllerTest()
 {
     this.indexRepository   = new Mock <IIndexRepository>();
     this.indexStoreManager = new IndexStoreManager(null, null, this.indexRepository.Object,
                                                    null, null, null, null);
     this.controller = new IndexStoreRPCController(this.loggerFactory, this.indexStoreManager);
 }
Ejemplo n.º 2
0
 public FullNodeController(
     ILoggerFactory loggerFactory,
     IFullNode fullNode        = null,
     NodeSettings nodeSettings = null,
     Network network           = null,
     PowConsensusValidator consensusValidator = null,
     ConcurrentChain chain          = null,
     ChainState chainState          = null,
     IndexStoreManager indexManager = null,
     BlockStoreManager blockManager = null,
     MempoolManager mempoolManager  = null,
     Connection.IConnectionManager connectionManager = null)
     : base(
         fullNode: fullNode,
         nodeSettings: nodeSettings,
         network: network,
         consensusValidator: consensusValidator,
         chain: chain,
         chainState: chainState,
         indexManager: indexManager,
         blockManager: blockManager,
         mempoolManager: mempoolManager,
         connectionManager: connectionManager)
 {
     this.logger = loggerFactory.CreateLogger(this.GetType().FullName);
 }
Ejemplo n.º 3
0
 public IndexStoreRPCController(
     ILoggerFactory loggerFactory,
     IndexStoreManager indexManager = null)
     : base(indexManager: indexManager)
 {
     this.logger       = loggerFactory.CreateLogger(this.GetType().FullName);
     this.IndexManager = indexManager;
 }
Ejemplo n.º 4
0
 public BaseRPCController(
     IFullNode fullNode        = null,
     NodeSettings nodeSettings = null,
     Network network           = null,
     PowConsensusValidator consensusValidator = null,
     ConsensusLoop consensusLoop    = null,
     ConcurrentChain chain          = null,
     ChainState chainState          = null,
     IndexStoreManager indexManager = 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;
 }