genesis 1
genesis 2
genesis 3
genesis 4 #include <boost/assign/list_of.hpp> // for 'map_list_of()'
genesis 5 #include <boost/test/unit_test.hpp>
genesis 6 #include <boost/foreach.hpp>
genesis 7
genesis 8 #include "../checkpoints.h"
genesis 9 #include "../util.h"
genesis 10
genesis 11 using namespace std;
genesis 12
genesis 13 BOOST_AUTO_TEST_SUITE(Checkpoints_tests)
genesis 14
genesis 15 BOOST_AUTO_TEST_CASE(sanity)
genesis 16 {
genesis 17 uint256 p11111 = uint256("0x0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d");
genesis 18 uint256 p140700 = uint256("0x000000000000033b512028abb90e1626d8b346fd0ed598ac0a3c371138dce2bd");
genesis 19 BOOST_CHECK(Checkpoints::CheckBlock(11111, p11111));
genesis 20 BOOST_CHECK(Checkpoints::CheckBlock(140700, p140700));
genesis 21
genesis 22
genesis 23
genesis 24 BOOST_CHECK(!Checkpoints::CheckBlock(11111, p140700));
genesis 25 BOOST_CHECK(!Checkpoints::CheckBlock(140700, p11111));
genesis 26
genesis 27
genesis 28 BOOST_CHECK(Checkpoints::CheckBlock(11111+1, p140700));
genesis 29 BOOST_CHECK(Checkpoints::CheckBlock(140700+1, p11111));
genesis 30
genesis 31 BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate() >= 140700);
genesis 32 }
genesis 33
genesis 34 BOOST_AUTO_TEST_SUITE_END()