CBlock: Fix null reference in copy constructor
authorCryptoManiac <balthazar@yandex.ru>
Fri, 28 Aug 2015 17:31:35 +0000 (20:31 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Fri, 28 Aug 2015 17:31:35 +0000 (20:31 +0300)
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++)
             {