Browse Source
0.14e141beb
IsInitialBlockDownload no longer uses header-only timestamps. (Gregory Maxwell)2082b55
Remove GetTotalBlocksEstimate and checkpoint tests that test nothing. (Gregory Maxwell)fd46136
IBD check uses minimumchain work instead of checkpoints. (Gregory Maxwell)
Pieter Wuille
8 years ago
8 changed files with 20 additions and 48 deletions
@ -1,27 +0,0 @@
@@ -1,27 +0,0 @@
|
||||
// Copyright (c) 2011-2015 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
//
|
||||
// Unit tests for block-chain checkpoints
|
||||
//
|
||||
|
||||
#include "checkpoints.h" |
||||
|
||||
#include "uint256.h" |
||||
#include "test/test_bitcoin.h" |
||||
#include "chainparams.h" |
||||
|
||||
#include <boost/test/unit_test.hpp> |
||||
|
||||
using namespace std; |
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(Checkpoints_tests, BasicTestingSetup) |
||||
|
||||
BOOST_AUTO_TEST_CASE(sanity) |
||||
{ |
||||
const CCheckpointData& checkpoints = Params(CBaseChainParams::MAIN).Checkpoints(); |
||||
BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate(checkpoints) >= 134444); |
||||
} |
||||
|
||||
BOOST_AUTO_TEST_SUITE_END() |
Loading…
Reference in new issue