Generic class was a bit excessive for our purposes
[NovacoinLibrary.git] / Novacoin / CBlock.cs
index 8974cef..8f6fb76 100644 (file)
@@ -42,16 +42,16 @@ namespace Novacoin
         /// <param name="blockBytes"></param>
                public CBlock (IList<byte> blockBytes)
                {
-            WrappedList<byte> wBytes = new WrappedList<byte>(blockBytes);
+            ByteQueue wBytes = new ByteQueue(blockBytes);
 
             // Fill the block header fields
-            header = new CBlockHeader(wBytes.GetItems(80));
+            header = new CBlockHeader(wBytes.Get(80));
 
             // Parse transactions list
             vtx = CTransaction.ReadTransactionsList(ref wBytes);
 
             // Read block signature
-            signature = wBytes.GetItems((int)VarInt.ReadVarInt(ref wBytes));
+            signature = wBytes.Get((int)VarInt.ReadVarInt(ref wBytes));
                }
 
         public CBlock()