Exemplo n.º 1
0
        public void AddBlockRange(string chainName, Block[] blocks, Dictionary <Hash, Transaction> transactions)
        {
            if (_blockRanges == null)
            {
                _blockRanges = new Dictionary <string, BlockRange>();
            }

            _blockRanges[chainName] = new BlockRange(blocks, transactions);
        }
Exemplo n.º 2
0
        public void AddBlockRange(string chainName, uint startHeight, IEnumerable <string> rawBlocks)
        {
            if (_blockRanges == null)
            {
                _blockRanges = new Dictionary <string, BlockRange>();
            }

            _blockRanges[chainName] = new BlockRange()
            {
                startHeight = startHeight, rawBlocks = rawBlocks.ToArray()
            };
        }