Exemple #1
0
        public void Parse(uint height, List <string> txIds, uint blocktime)
        {
            var sizeVarintTx = Mint.GetSizeVarInt((long)(txIds.Count));
            var offset       = PeercoinConstants.BlockHeaderSize + sizeVarintTx;

            for (int index = 0; index < txIds.Count; index++)
            {
                var tx      = client.GetRawTransaction(txIds[index]);
                var txraw   = client.DecodeRawTransaction(tx.hex);
                var rawsize = tx.hex.Length / 2;                 // 2 char is 1 byte

                StoreTxState(blocktime, height, txraw, tx, (uint)index, offset, (uint)rawsize);

                DeleteSpentFromStore(txraw);

                ParseVouts(txraw);

                offset += rawsize;
            }
        }