Turn ByteQueue into MemoryStream wrapper, use MemoryStream for serialization of COutP...
[NovacoinLibrary.git] / Novacoin / CBlock.cs
index 01bdb27..4c87806 100644 (file)
@@ -87,7 +87,7 @@ namespace Novacoin
                {
             try
             {
-                ByteQueue wBytes = new ByteQueue(blockBytes);
+                ByteQueue wBytes = new ByteQueue(ref blockBytes);
 
                 // Fill the block header fields
                 header = new CBlockHeader(wBytes.Get(80));