From a009611c3eb2e32cf47a942d952a0ae126c779b0 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Fri, 21 Aug 2015 20:09:42 +0300 Subject: [PATCH 1/1] Initialization cleanup --- Novacoin/CBlockHeader.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Novacoin/CBlockHeader.cs b/Novacoin/CBlockHeader.cs index 8c07cf2..1c346e6 100644 --- a/Novacoin/CBlockHeader.cs +++ b/Novacoin/CBlockHeader.cs @@ -60,8 +60,8 @@ namespace Novacoin public CBlockHeader(byte[] bytes) { nVersion = BitConverter.ToUInt32(bytes, 0); - prevHash = new Hash256(bytes.Skip(4).Take(32).ToArray()); - merkleRoot = new Hash256(bytes.Skip(36).Take(32).ToArray()); + prevHash = new Hash256(bytes, 4); + merkleRoot = new Hash256(bytes, 36); nTime = BitConverter.ToUInt32(bytes, 68); nBits = BitConverter.ToUInt32(bytes, 72); nNonce = BitConverter.ToUInt32(bytes, 76); -- 1.7.1