experimental-genesis 1
experimental-genesis 2
experimental-genesis 3
experimental-genesis 4
experimental-genesis 5
experimental-genesis 6
experimental-genesis 7
experimental-genesis 8
experimental-genesis 9
experimental-genesis 10
experimental-genesis 11
experimental-genesis 12
experimental-genesis 13
experimental-genesis 14
experimental-genesis 15
experimental-genesis 16
experimental-genesis 17
experimental-genesis 18
experimental-genesis 19
experimental-genesis 20
experimental-genesis 21
experimental-genesis 22
experimental-genesis 23
experimental-genesis 24
experimental-genesis 25
experimental-genesis 26
experimental-genesis 27
experimental-genesis 28
experimental-genesis 29
experimental-genesis 30
experimental-genesis 31
experimental-genesis 32
experimental-genesis 33
experimental-genesis 34
experimental-genesis 35 #include <boost/assign/list_of.hpp> // for 'map_list_of()'
experimental-genesis 36 #include <boost/test/unit_test.hpp>
experimental-genesis 37 #include <boost/foreach.hpp>
experimental-genesis 38
experimental-genesis 39 #include "../checkpoints.h"
experimental-genesis 40 #include "../util.h"
experimental-genesis 41
experimental-genesis 42 using namespace std;
experimental-genesis 43
experimental-genesis 44 BOOST_AUTO_TEST_SUITE(Checkpoints_tests)
experimental-genesis 45
experimental-genesis 46 BOOST_AUTO_TEST_CASE(sanity)
experimental-genesis 47 {
experimental-genesis 48 uint256 p11111 = uint256("0x0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d");
experimental-genesis 49 uint256 p140700 = uint256("0x000000000000033b512028abb90e1626d8b346fd0ed598ac0a3c371138dce2bd");
experimental-genesis 50 BOOST_CHECK(Checkpoints::CheckBlock(11111, p11111));
experimental-genesis 51 BOOST_CHECK(Checkpoints::CheckBlock(140700, p140700));
experimental-genesis 52
experimental-genesis 53
experimental-genesis 54
experimental-genesis 55 BOOST_CHECK(!Checkpoints::CheckBlock(11111, p140700));
experimental-genesis 56 BOOST_CHECK(!Checkpoints::CheckBlock(140700, p11111));
experimental-genesis 57
experimental-genesis 58
experimental-genesis 59 BOOST_CHECK(Checkpoints::CheckBlock(11111+1, p140700));
experimental-genesis 60 BOOST_CHECK(Checkpoints::CheckBlock(140700+1, p11111));
experimental-genesis 61
experimental-genesis 62 BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate() >= 140700);
experimental-genesis 63 }
experimental-genesis 64
experimental-genesis 65 BOOST_AUTO_TEST_SUITE_END()