Changeset View
Changeset View
Standalone View
Standalone View
src/test/skiplist_tests.cpp
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "chain.h" | #include <chain.h> | ||||
#include "test/test_bitcoin.h" | #include <util.h> | ||||
#include "util.h" | |||||
#include <vector> | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <vector> | |||||
#define SKIPLIST_LENGTH 300000 | #define SKIPLIST_LENGTH 300000 | ||||
BOOST_FIXTURE_TEST_SUITE(skiplist_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(skiplist_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(skiplist_test) { | BOOST_AUTO_TEST_CASE(skiplist_test) { | ||||
std::vector<CBlockIndex> vIndex(SKIPLIST_LENGTH); | std::vector<CBlockIndex> vIndex(SKIPLIST_LENGTH); | ||||
for (int i = 0; i < SKIPLIST_LENGTH; i++) { | for (int i = 0; i < SKIPLIST_LENGTH; i++) { | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |