2014-03-18 10:11:00 +01:00
|
|
|
// Copyright (c) 2011-2013 The Bitcoin Core developers
|
2014-12-13 05:09:33 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2014-03-18 10:11:00 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2011-09-08 22:50:58 +02:00
|
|
|
//
|
|
|
|
// Unit tests for block-chain checkpoints
|
|
|
|
//
|
|
|
|
|
2013-04-13 07:13:08 +02:00
|
|
|
#include "checkpoints.h"
|
|
|
|
|
|
|
|
#include "uint256.h"
|
2015-03-12 09:34:42 +01:00
|
|
|
#include "test/test_bitcoin.h"
|
2015-04-23 00:19:11 +02:00
|
|
|
#include "chainparams.h"
|
2013-04-13 07:13:08 +02:00
|
|
|
|
|
|
|
#include <boost/test/unit_test.hpp>
|
2011-09-08 22:50:58 +02:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2015-03-12 09:34:42 +01:00
|
|
|
BOOST_FIXTURE_TEST_SUITE(Checkpoints_tests, BasicTestingSetup)
|
2011-09-08 22:50:58 +02:00
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(sanity)
|
|
|
|
{
|
2015-04-23 00:19:11 +02:00
|
|
|
const Checkpoints::CCheckpointData& checkpoints = Params(CBaseChainParams::MAIN).Checkpoints();
|
|
|
|
BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate(checkpoints) >= 134444);
|
2015-03-19 13:34:06 +01:00
|
|
|
}
|
2011-09-08 22:50:58 +02:00
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|