CBlock: Fix null reference in copy constructor
[NovacoinLibrary.git] / Novacoin / CBlock.cs
index 20f462c..856358f 100644 (file)
@@ -47,6 +47,7 @@ namespace Novacoin
         public CBlock(CBlock b)
         {
             header = new CBlockHeader(b.header);
+            vtx = new CTransaction[b.vtx.Length];
 
             for (int i = 0; i < b.vtx.Length; i++)
             {