Exemplo n.º 1
0
        public ChainBuilder(IndexerTester indexerTester)
        {
            this._Tester = indexerTester;
            var genesis = indexerTester.Indexer.Configuration.Network.GetGenesis();

            _Blocks.Add(genesis.GetHash(), genesis);
        }
        public ChainBuilder(IndexerTester indexerTester)
        {
            this._tester       = indexerTester;
            this._partitionKey = indexerTester.Indexer.StorageClient.Network.Name.ToLowerInvariant();
            var genesis = indexerTester.Indexer.StorageClient.Network.GetGenesis();

            _blocks.Add(genesis.GetHash(), genesis);
        }
Exemplo n.º 3
0
 public MiniNode(IndexerTester tester, NodeServer server)
 {
     _Generator = new ChainBuilder(tester);
     _Server    = server;
     server.AllMessages.AddMessageListener(new NewThreadMessageListener <IncomingMessage>(ProcessMessage));
 }