protected override void ProcessBlock(BlockInfo block, BulkImport <TransactionEntry.Entity> bulk)
 {
     foreach (var transaction in block.Block.Transactions)
     {
         var indexed = new TransactionEntry.Entity(null, transaction, block.BlockId);
         bulk.Add(indexed.PartitionKey, indexed);
     }
 }
        protected override void ProcessBlock(BlockInfo block, BulkImport <OrderedBalanceChange> bulk)
        {
            foreach (var tx in block.Block.Transactions)
            {
                var txId = tx.GetHash();

                var entries = extract(txId, tx, block.BlockId, block.Block.Header, block.Height);
                foreach (var entry in entries)
                {
                    bulk.Add(entry.PartitionKey, entry);
                }
            }
        }
Пример #3
0
 protected override void ProcessBlock(BlockInfo block, BulkImport <BlockInfo> bulk)
 {
     bulk.Add("o", block);
 }