3 using System.Collections.Generic;
10 public class CBlockHeader
13 /// Version of block schema.
15 public uint nVersion = 6;
18 /// Previous block hash.
20 public Hash256 prevHash = new Hash256();
25 public Hash256 merkleRoot = new Hash256();
30 public uint nTime = 0;
33 /// Compressed difficulty representation.
35 public uint nBits = 0;
40 public uint nNonce = 0;
42 public CBlockHeader ()
46 public override string ToString()
48 StringBuilder sb = new StringBuilder();
49 sb.AppendFormat("CBlockHeader(nVersion={0}, prevHash={1}, merkleRoot={2}, nTime={3}, nBits={4}, nNonce={5})", nVersion, prevHash.ToString(), merkleRoot.ToString(), nTime, nBits, nNonce);