2017-11-09 19:34:51 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2011-2015 The Bitcoin Core developers
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2014-03-18 10:11:00 +01:00
|
|
|
|
2011-09-08 16:50:58 -04:00
|
|
|
//
|
|
|
|
|
// Unit tests for block-chain checkpoints
|
|
|
|
|
//
|
|
|
|
|
|
2013-04-13 00:13:08 -05:00
|
|
|
#include "checkpoints.h"
|
2015-04-22 18:19:11 -04:00
|
|
|
#include "chainparams.h"
|
2017-08-15 10:56:31 -06:00
|
|
|
#include "test/test_bitcoin.h"
|
2013-04-13 00:13:08 -05:00
|
|
|
|
|
|
|
|
#include <boost/test/unit_test.hpp>
|
2011-09-08 16:50:58 -04:00
|
|
|
|
2015-03-12 09:34:42 +01:00
|
|
|
BOOST_FIXTURE_TEST_SUITE(Checkpoints_tests, BasicTestingSetup)
|
2011-09-08 16:50:58 -04:00
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(sanity)
|
|
|
|
|
{
|
2015-06-05 15:36:34 -04:00
|
|
|
const CCheckpointData& checkpoints = Params(CBaseChainParams::MAIN).Checkpoints();
|
2015-04-22 18:19:11 -04:00
|
|
|
BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate(checkpoints) >= 134444);
|
2015-03-19 05:34:06 -07:00
|
|
|
}
|
2011-09-08 16:50:58 -04:00
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|