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