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);