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); }
public MiniNode(IndexerTester tester, NodeServer server) { _Generator = new ChainBuilder(tester); _Server = server; server.AllMessages.AddMessageListener(new NewThreadMessageListener <IncomingMessage>(ProcessMessage)); }