Esempio n. 1
0
 public NodeSynchronizer(NodeCache nodeCache,
                         StateOfNeoContext ctx,
                         RPCNodeCaller rPCNodeCaller,
                         LocationCaller locationCaller,
                         IOptions <NetSettings> netsettings)
 {
     this.nodeCache      = nodeCache;
     this.ctx            = ctx;
     this.rPCNodeCaller  = rPCNodeCaller;
     this.locationCaller = locationCaller;
     this.netsettings    = netsettings.Value;
     this.UpdateDbCache();
 }
        public NotificationEngine(
            IHubContext <NodeHub> nodeHub,
            IHubContext <BlockHub> blockHub,
            IHubContext <TransactionCountHub> transCountHub,
            IHubContext <TransactionAverageCountHub> transAvgCountHub,
            IHubContext <FailedP2PHub> failP2PHub,
            NodeCache nodeCache,
            PeersEngine peersEngine,
            NodeSynchronizer nodeSynchronizer,
            RPCNodeCaller rPCNodeCaller,
            IOptions <NetSettings> netSettings)
        {
            this.nodeHub          = nodeHub;
            this.nodeCache        = nodeCache;
            this.transCountHub    = transCountHub;
            this.failP2PHub       = failP2PHub;
            this.transAvgCountHub = transAvgCountHub;
            this.nodeSynchronizer = nodeSynchronizer;
            this.rPCNodeCaller    = rPCNodeCaller;
            this.netSettings      = netSettings.Value;
            this.peersEngine      = peersEngine;

            this.blockHub = blockHub;
        }