Init some fields, add ToString() for Hash160 and Hash256, start implementation of...
[NovacoinLibrary.git] / Novacoin / CBlockHeader.cs
1 \feffusing System;
2
3 namespace Novacoin
4 {
5         /// <summary>
6         /// Block header
7         /// </summary>
8         public class CBlockHeader
9         {
10                 /// <summary>
11                 /// Version of block schema.
12                 /// </summary>
13                 public uint nVersion = 6;
14
15                 /// <summary>
16                 /// Previous block hash.
17                 /// </summary>
18                 public Hash256 prevHash = new Hash256();
19
20                 /// <summary>
21                 /// Merkle root hash.
22                 /// </summary>
23                 public Hash256 merkleRoot = new Hash256();
24
25                 /// <summary>
26                 /// Block timestamp.
27                 /// </summary>
28                 public uint nTime = 0;
29
30                 /// <summary>
31                 /// Compressed difficulty representation.
32                 /// </summary>
33                 public uint nBits = 0;
34
35                 /// <summary>
36                 /// Nonce counter.
37                 /// </summary>
38                 public uint nNonce = 0;
39
40                 public CBlockHeader ()
41                 {
42                 }
43         }
44 }