5 public class Checkpoints
7 private static Tuple<uint, uint256, uint>[] checkpoints = new Tuple<uint, uint256, uint>[]
9 new Tuple<uint, uint256, uint>(0, NetInfo.nHashGenesisBlock, 1360105017),
10 new Tuple<uint, uint256, uint>(200000, new uint256("0000000000029f8bbf66e6ea6f3e5db55009404aae0fe395a53dd33142b2bff2"), 1441127233),
14 /// Last checkpoint height.
16 public static uint TotalBlocksEstimate { get { return checkpoints[checkpoints.Length - 1].Item1; } }
19 /// Last checkpoint timestamp.
21 public static uint LastCheckpointTime { get { return checkpoints[checkpoints.Length - 1].Item3; } }
24 /// Block hash verification.
26 /// <param name="nHeight">Block height.</param>
27 /// <param name="nBlockHash">Block hash.</param>
28 /// <returns></returns>
29 public static bool Verify(uint nHeight, uint256 nBlockHash)
31 foreach (var checkpoint in checkpoints)
33 if (checkpoint.Item1 == nHeight)
35 return nBlockHash == checkpoint.Item2;