using System; namespace Novacoin { public class Checkpoints { private static Tuple[] checkpoints = new Tuple[] { new Tuple(0, NetInfo.nHashGenesisBlock, 1360105017) }; /// /// Last checkpoint height. /// public static uint TotalBlocksEstimate { get { return checkpoints[checkpoints.Length - 1].Item1; } } /// /// Last checkpoint timestamp. /// public static uint LastCheckpointTime { get { return checkpoints[checkpoints.Length - 1].Item3; } } /// /// Block hash verification. /// /// Block height. /// Block hash. /// public static bool Verify(uint nHeight, uint256 nBlockHash) { foreach (var checkpoint in checkpoints) { if (checkpoint.Item1 == nHeight) { return nBlockHash == checkpoint.Item2; } } return true; } } }