BitSharper.Block.CalculateHash C# (CSharp) Method

CalculateHash() private method

Calculates the block hash by serializing the block and hashing the resulting bytes.
private CalculateHash ( ) : Sha256Hash
return Sha256Hash
        private Sha256Hash CalculateHash()
        {
            using (var bos = new MemoryStream())
            {
                WriteHeader(bos);
                return new Sha256Hash(Utils.ReverseBytes(Utils.DoubleDigest(bos.ToArray())));
            }
        }